* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0b0b0d;
    --bg-elevated: #141414;
    --accent: #e50914;
    --accent-dark: #b0060f;
    --text-main: #f5f5f5;
    --text-muted: #a6a6a6;
    --border: #2a2a2a;
}

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: var(--bg-elevated);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    color: var(--accent);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex: 1;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 14px;
}

.main-nav a:hover {
    color: var(--text-main);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-input {
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    width: 200px;
}

.nav-btn {
    background: var(--accent);
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--accent-dark);
}

.user-pill {
    font-size: 13px;
    color: var(--text-muted);
}

.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center top;
    padding: 0 40px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 5%, rgba(11,11,13,0.2) 60%, rgba(11,11,13,0.6));
}

.hero-content {
    position: relative;
    max-width: 560px;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-meta {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 24px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    margin-right: 12px;
}

.btn-play {
    background: #fff;
    color: #000;
}

.btn-play:hover {
    background: rgba(255,255,255,0.8);
}

.btn-info {
    background: rgba(109,109,110,0.7);
    color: #fff;
}

.btn-info:hover {
    background: rgba(109,109,110,0.5);
}

.rows-container {
    padding: 20px 0 60px;
    margin-top: -60px;
    position: relative;
    z-index: 3;
}

.row {
    margin-bottom: 40px;
    padding-left: 40px;
}

.row-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.row-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.row-track::-webkit-scrollbar {
    height: 6px;
}

.row-track::-webkit-scrollbar-thumb {
    background: var(--border);
}

.card {
    flex: 0 0 220px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--bg-elevated);
}

.card:hover {
    transform: scale(1.08);
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.card img {
    width: 100%;
    height: 124px;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 10px;
}

.card-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.card-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.empty-state {
    padding: 100px 40px;
    text-align: center;
    color: var(--text-muted);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.75)), url('https://assets.nflxext.com/ffe/siteui/vlv3/free-preview.jpg') center/cover;
}

.auth-box {
    background: rgba(0,0,0,0.85);
    padding: 50px;
    border-radius: 6px;
    width: 380px;
}

.auth-box h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.field textarea {
    resize: vertical;
    min-height: 90px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.alert {
    background: #4d1414;
    border: 1px solid var(--accent);
    color: #ffb3b3;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-success {
    background: #12401f;
    border-color: #2f9e44;
    color: #b6f2c0;
}

.switch-link {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.switch-link a {
    color: #fff;
    font-weight: 600;
}

.site-footer {
    padding: 40px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.watch-page {
    padding-top: 90px;
}

.video-wrap {
    background: #000;
    max-width: 1100px;
    margin: 0 auto;
}

.video-wrap video {
    width: 100%;
    max-height: 640px;
    display: block;
}

.watch-details {
    max-width: 1100px;
    margin: 24px auto 60px;
    padding: 0 40px;
}

.watch-details h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.watch-details .hero-meta {
    margin-bottom: 16px;
}

.admin-body {
    background: #f4f4f5;
    color: #1a1a1a;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 230px;
    background: #141414;
    color: #fff;
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-sidebar .brand {
    display: block;
    padding: 0 24px 24px;
    font-size: 20px;
}

.admin-sidebar a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    color: #ccc;
    border-left: 3px solid transparent;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: #1f1f1f;
    color: #fff;
    border-left-color: var(--accent);
}

.admin-main {
    flex: 1;
    padding: 32px 40px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.admin-topbar h1 {
    font-size: 24px;
}

.admin-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.admin-card h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.admin-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.admin-card input, .admin-card select, .admin-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: 14px;
}

.admin-card textarea {
    min-height: 90px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-red {
    background: var(--accent);
    color: #fff;
}

.btn-red:hover {
    background: var(--accent-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-box {
    background: #fff;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-box .num {
    font-size: 32px;
    font-weight: 800;
}

.stat-box .label {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
}

table.admin-table th, table.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

table.admin-table th {
    color: #777;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

table.admin-table img {
    width: 60px;
    height: 34px;
    object-fit: cover;
    border-radius: 3px;
}

.table-actions a {
    font-size: 13px;
    margin-right: 12px;
    color: var(--accent);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: #e6f4ea;
    color: #2f9e44;
}

@media (max-width: 900px) {
    .header-inner { gap: 16px; }
    .main-nav { display: none; }
    .search-input { width: 130px; }
    .hero-title { font-size: 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
}
