@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --bg4: #222230;
  --accent: #F84B4B;
  --accent-hover: #d93a3a;
  --accent-soft: rgba(248,75,75,0.12);
  --text: #f0f0f0;
  --text2: #888;
  --text3: #555;
  --border: #222230;
  --border2: #2a2a3e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* NAV */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; background: rgba(10,10,15,0.9);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.logo { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.2rem; align-items: center; }
.nav-links a { color: var(--text2); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); opacity: 1; }

/* BUTTONS */
.btn {
  padding: 0.55rem 1.3rem; border-radius: var(--radius-sm);
  border: none; cursor: pointer; font-size: 0.88rem; font-weight: 600;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); opacity: 1; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn-ghost { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); opacity: 1; }
.btn-danger { background: rgba(229,62,62,0.15); color: #fc8181; border: 1px solid rgba(229,62,62,0.2); }
.btn-danger:hover { background: rgba(229,62,62,0.25); opacity: 1; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.lang-switch { font-size: 0.82rem; color: var(--text3); cursor: pointer; padding: 0.4rem 0.7rem; border-radius: 6px; border: 1px solid var(--border); transition: all 0.2s; }
.lang-switch:hover { color: var(--text2); border-color: var(--border2); }

/* HERO */
.hero { text-align: center; padding: 7rem 2rem 5rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; background: radial-gradient(circle, rgba(248,75,75,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-soft); border: 1px solid rgba(248,75,75,0.2);
  color: var(--accent); padding: 0.4rem 1rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 2rem;
}
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -2px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--text2); max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.75; font-weight: 400; }
.hero-btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* SOCIAL PROOF */
.social-proof { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; color: var(--text3); font-size: 0.82rem; }
.social-proof strong { color: var(--text2); }

/* FEATURES */
.features { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-label { text-align: center; color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.features h2 { text-align: center; font-size: 2.2rem; font-weight: 800; margin-bottom: 0.8rem; letter-spacing: -1px; }
.features .sub { text-align: center; color: var(--text2); margin-bottom: 3.5rem; font-size: 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; background: var(--accent-soft);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text2); font-size: 0.88rem; line-height: 1.65; }

/* PRICING */
.pricing { padding: 5rem 2rem; max-width: 1050px; margin: 0 auto; }
.pricing h1 { text-align: center; font-size: 2.5rem; font-weight: 900; margin-bottom: 0.5rem; letter-spacing: -1.5px; }
.pricing .subtitle { text-align: center; color: var(--text2); margin-bottom: 3.5rem; font-size: 1rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; align-items: start; }
.plan-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; position: relative; }
.plan-card.featured { border-color: var(--accent); background: linear-gradient(135deg, var(--bg2) 0%, rgba(248,75,75,0.04) 100%); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 0.25rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.plan-name { font-size: 0.85rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.plan-price { font-size: 3rem; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.plan-price span { font-size: 0.95rem; color: var(--text2); font-weight: 400; letter-spacing: 0; }
.plan-desc { color: var(--text2); font-size: 0.85rem; margin: 0.8rem 0 1.5rem; line-height: 1.5; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li { padding: 0.45rem 0; color: var(--text2); font-size: 0.88rem; display: flex; align-items: center; gap: 0.6rem; }
.plan-features li svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; }
.plan-card .btn { width: 100%; justify-content: center; padding: 0.75rem; }
.plan-soon { display: inline-block; background: var(--bg3); color: var(--text3); font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 4px; margin-left: 0.5rem; vertical-align: middle; }

/* CONTACT FORM */
.contact-form { margin-top: 1.5rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.7rem 1rem; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.88rem; font-family: 'Inter', sans-serif;
  margin-bottom: 0.7rem; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 80px; }

/* AUTH */
.auth-container { max-width: 400px; margin: 5rem auto; padding: 1.5rem; }
.auth-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo { font-size: 1.6rem; }
.auth-box h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; letter-spacing: -0.5px; }
.auth-box p { color: var(--text2); font-size: 0.88rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--text2); }
.form-group input { width: 100%; padding: 0.75rem 1rem; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem; font-family: 'Inter', sans-serif; transition: border-color 0.2s; }
.form-group input:focus { outline: none; border-color: var(--accent); }
.auth-box .btn { width: 100%; padding: 0.85rem; font-size: 0.95rem; margin-top: 0.5rem; justify-content: center; }
.auth-link { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text2); }
.error-msg { background: rgba(229,62,62,0.1); border: 1px solid rgba(229,62,62,0.3); color: #fc8181; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 1rem; display: none; }
.success-msg { background: rgba(72,187,120,0.1); border: 1px solid rgba(72,187,120,0.3); color: #68d391; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 1rem; display: none; }

/* DASHBOARD */
.dashboard { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dashboard-header h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.storage-bar { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin-bottom: 2rem; display: flex; align-items: center; gap: 1.5rem; }
.storage-bar .bar-wrap { flex: 1; }
.storage-bar .label { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.8rem; color: var(--text2); }
.bar { background: var(--bg4); border-radius: 20px; height: 6px; }
.bar-fill { background: var(--accent); height: 100%; border-radius: 20px; transition: width 0.5s ease; }
.upgrade-btn { white-space: nowrap; }

/* PROJECTS GRID */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.project-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem; cursor: pointer;
  transition: all 0.2s; position: relative; overflow: hidden;
}
.project-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); opacity: 0; transition: opacity 0.2s; }
.project-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
.project-card:hover::before { opacity: 1; }
.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.8rem; }
.project-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.project-card p { color: var(--text2); font-size: 0.83rem; line-height: 1.5; margin-bottom: 1.2rem; }
.project-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text3); border-top: 1px solid var(--border); padding-top: 1rem; }
.project-card .meta-left { display: flex; gap: 1rem; }
.project-thumb { width: 40px; height: 40px; background: var(--accent-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.project-thumb svg { width: 20px; height: 20px; stroke: var(--accent); }
.new-project-card {
  background: transparent; border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 1.8rem; cursor: pointer;
  transition: all 0.2s; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem;
  min-height: 160px; color: var(--text3);
}
.new-project-card:hover { border-color: var(--accent); color: var(--accent); }
.new-project-card svg { width: 28px; height: 28px; }
.new-project-card span { font-size: 0.88rem; font-weight: 600; }

/* MODAL */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 200; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-box { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 2rem; width: 100%; max-width: 500px; box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; }
.modal-header h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.3px; }
.modal-close { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 1.2rem; padding: 0.2rem; }
.modal-actions { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.modal-actions .btn { flex: 1; justify-content: center; }

/* VIDEO SECTION */
.section-back { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.5rem; color: var(--text2); font-size: 0.88rem; cursor: pointer; width: fit-content; }
.section-back:hover { color: var(--text); }
.section-back svg { width: 16px; height: 16px; stroke: currentColor; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.section-header h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.3px; }

.upload-zone {
  border: 2px dashed var(--border2); border-radius: var(--radius);
  padding: 2.5rem; text-align: center; margin-bottom: 1.5rem;
  transition: all 0.2s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone svg { width: 32px; height: 32px; stroke: var(--text3); margin-bottom: 0.8rem; }
.upload-zone p { color: var(--text2); font-size: 0.88rem; }
.upload-zone strong { color: var(--accent); }
.upload-progress { margin-bottom: 1.5rem; display: none; }
.upload-progress .label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text2); margin-bottom: 0.5rem; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.video-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all 0.2s;
}
.video-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
.video-thumb {
  background: var(--bg3); height: 160px; display: flex;
  align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.video-thumb video { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text3); }
.video-thumb-placeholder svg { width: 36px; height: 36px; }
.video-card-body { padding: 1.2rem; }
.video-card-body h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-card-body .meta { font-size: 0.78rem; color: var(--text3); margin-bottom: 1rem; }
.video-card-actions { display: flex; gap: 0.5rem; }
.video-card-actions .btn { flex: 1; justify-content: center; font-size: 0.78rem; padding: 0.45rem; }

/* PLAYER PAGE */
.player-page { display: grid; grid-template-columns: 1fr 340px; gap: 0; min-height: calc(100vh - 65px); }
.player-main { padding: 2rem; border-right: 1px solid var(--border); }
.player-header { margin-bottom: 1.2rem; }
.player-header h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 0.3rem; }
.player-header .meta { font-size: 0.8rem; color: var(--text2); display: flex; gap: 1rem; }
.player-header .version-badge { background: var(--accent-soft); color: var(--accent); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
video#main-player { width: 100%; border-radius: var(--radius); background: #000; max-height: 60vh; object-fit: contain; }
.player-hint { display: flex; align-items: center; gap: 0.5rem; color: var(--text3); font-size: 0.78rem; margin-top: 1rem; padding: 0.7rem 1rem; background: var(--bg2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.player-hint svg { width: 14px; height: 14px; stroke: var(--text3); flex-shrink: 0; }
.player-actions { display: flex; gap: 0.7rem; margin-top: 1rem; flex-wrap: wrap; }

.comments-sidebar { display: flex; flex-direction: column; height: calc(100vh - 65px); position: sticky; top: 65px; }
.comments-header { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid var(--border); }
.comments-header h3 { font-size: 1rem; font-weight: 700; }
.comments-header p { font-size: 0.78rem; color: var(--text2); margin-top: 0.2rem; }
.comments-list { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.comment-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem; cursor: pointer; transition: all 0.15s; }
.comment-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.comment-item .comment-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.comment-item .author { font-size: 0.82rem; font-weight: 700; }
.comment-item .tc { background: var(--accent); color: #fff; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.72rem; font-weight: 700; }
.comment-item .text { color: var(--text2); font-size: 0.83rem; line-height: 1.5; }
.comment-form-box { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg2); }
.comment-form-box h4 { font-size: 0.82rem; font-weight: 700; color: var(--text2); margin-bottom: 0.8rem; }
.comment-form-box input, .comment-form-box textarea { width: 100%; padding: 0.65rem 0.9rem; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.85rem; font-family: 'Inter', sans-serif; margin-bottom: 0.6rem; transition: border-color 0.2s; }
.comment-form-box input:focus, .comment-form-box textarea:focus { outline: none; border-color: var(--accent); }
.comment-form-box textarea { resize: none; height: 70px; }
.comment-form-box .btn { width: 100%; justify-content: center; }
.timestamp-indicator { font-size: 0.75rem; color: var(--accent); margin-bottom: 0.5rem; font-weight: 600; }

/* FOOTER */
footer { text-align: center; padding: 2.5rem 2rem; color: var(--text3); font-size: 0.82rem; border-top: 1px solid var(--border); margin-top: 5rem; }
footer a { color: var(--text2); }
footer a:hover { color: var(--accent); opacity: 1; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text2); }
.empty-state svg { width: 48px; height: 48px; stroke: var(--text3); margin-bottom: 1rem; }
.empty-state h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.85rem; line-height: 1.6; }

@media (max-width: 768px) {
  .player-page { grid-template-columns: 1fr; }
  .comments-sidebar { height: auto; position: static; }
  nav { padding: 0.8rem 1rem; }
  .hero { padding: 4rem 1rem 3rem; }
  .dashboard { padding: 1rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* NAV MOBILE */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f0f0f0;
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #0f0f14;
    border-bottom: 1px solid #1a1a24;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: .9rem;
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button, .nav-links span { width: 100%; }
  .nav-links .btn { text-align: center; justify-content: center; }
  nav { position: relative; }
}
