:root {
  --bg: #101116;
  --panel: #171920;
  --panel-2: #1d2029;
  --line: rgba(255,255,255,.085);
  --text: #f4f3f0;
  --muted: #92949e;
  --soft: #c3c4cb;
  --accent: #c5a77d;
  --accent-bright: #e0c49b;
  --green: #77bd96;
  --danger: #e28c8c;
  --font: 'DM Sans', system-ui, sans-serif;
  --display: 'Manrope', 'DM Sans', sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(197,167,125,.3); color: white; }

/* Common */
.brand, .brand-mark { display: inline-flex; align-items: center; gap: 11px; color: #f7f4ef; font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: .19em; }
.brand-mark-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(197,167,125,.7); border-radius: 9px; color: var(--accent-bright); font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: 0; }
.eyebrow, .sidebar-caption, .topbar-label, .login-kicker { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.heading-period { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; padding: 0 19px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; letter-spacing: .025em; transition: .2s ease; }
.button-primary { background: var(--accent); color: #171717; }
.button-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }
.button-secondary { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.13); color: var(--text); }
.button-secondary:hover { border-color: rgba(197,167,125,.55); background: rgba(197,167,125,.1); }
.flash-stack { position: fixed; z-index: 50; top: 18px; right: 20px; display: grid; gap: 8px; width: min(420px, calc(100vw - 40px)); }
.flash { padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: #20232c; color: var(--text); box-shadow: 0 14px 40px rgba(0,0,0,.32); font-size: 12px; }
.flash-success { border-color: rgba(119,189,150,.4); }
.flash-error { border-color: rgba(226,140,140,.42); }
.flash-info { border-color: rgba(197,167,125,.35); }
.secure-dot, .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(119,189,150,.38); }

/* Login */
.login-body { min-height: 100vh; overflow: hidden; background: #0d0f14; }
.login-shell { position: relative; display: grid; min-height: 100vh; place-items: center; padding: 42px 22px 75px; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, rgba(49,45,42,.28), transparent 45%), linear-gradient(135deg, #0d0f14 0%, #12131a 52%, #0d0e13 100%); }
.login-shell::before { position: absolute; inset: 0; content: ''; opacity: .1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent); }
.login-glow { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(100px); opacity: .12; pointer-events: none; }
.login-glow-one { top: -190px; left: -120px; background: #b58a58; }
.login-glow-two { right: -180px; bottom: -230px; background: #59627c; }
.login-card { position: relative; z-index: 1; width: min(100%, 420px); padding: 43px 43px 31px; border: 1px solid rgba(255,255,255,.105); border-radius: 18px; background: linear-gradient(155deg, rgba(31,33,42,.96), rgba(21,23,30,.97)); box-shadow: 0 34px 100px rgba(0,0,0,.43), inset 0 1px rgba(255,255,255,.04); }
.login-card .brand-mark { margin-bottom: 38px; }
.login-kicker { margin-bottom: 13px; font-size: 8px; }
.login-card h1 { margin: 0; font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.22; letter-spacing: -.045em; }
.login-card h1 span { color: var(--accent-bright); }
.login-copy { margin: 13px 0 30px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.login-form { display: flex; flex-direction: column; }
.login-form label, .admin-form label { margin: 0 0 8px; color: #c4c5cc; font-size: 11px; font-weight: 600; }
.input-wrap { position: relative; margin-bottom: 19px; }
.input-wrap input { width: 100%; height: 47px; padding: 0 14px 0 42px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; outline: none; background: rgba(8,9,13,.34); color: var(--text); font-size: 12px; transition: .2s ease; }
.input-wrap input:focus, .admin-form input:focus, .admin-form textarea:focus { border-color: rgba(197,167,125,.75); box-shadow: 0 0 0 3px rgba(197,167,125,.09); }
.input-wrap input::placeholder, .admin-form input::placeholder, .admin-form textarea::placeholder { color: #686b76; }
.input-icon { position: absolute; top: 50%; left: 15px; z-index: 1; color: #8e9099; font-size: 15px; transform: translateY(-50%); }
.input-lock { font-size: 8px; }
.login-form label[for="password"] { margin-top: 1px; }
.login-button { width: 100%; margin-top: 7px; }
.login-button span { font-size: 16px; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 27px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.065); color: #777a84; font-size: 9px; letter-spacing: .035em; }
.login-foot .secure-dot { width: 6px; height: 6px; }
.login-bottom { position: absolute; bottom: 27px; color: #595c66; font-size: 8px; letter-spacing: .24em; }
.error-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; align-items: center; justify-content: center; flex-direction: column; padding: 28px; text-align: center; }
.error-code { margin-top: 45px; color: var(--accent); font-family: var(--display); font-size: 64px; font-weight: 800; }
.error-shell h1 { max-width: 470px; margin: 0 0 25px; color: var(--soft); font-size: 16px; font-weight: 500; }

/* Library shell */
.app-body { min-height: 100vh; background: #101116; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 5; top: 0; bottom: 0; left: 0; display: flex; width: 238px; flex-direction: column; padding: 29px 18px 20px; border-right: 1px solid var(--line); background: #13151b; }
.brand-sidebar { margin: 0 0 58px 7px; }
.sidebar-caption { margin: 0 0 15px 11px; color: #727681; font-size: 8px; }
 .sidebar-search { display: flex; height: 38px; align-items: center; gap: 7px; margin: 0 0 22px; padding: 0 8px 0 11px; border: 1px solid rgba(255,255,255,.085); border-radius: 7px; background: #0f1117; }
.sidebar-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 9px; }
.sidebar-search input::placeholder { color: #737681; }
.sidebar-search button { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 5px; background: rgba(197,167,125,.1); color: var(--accent-bright); font-size: 17px; }
.sidebar-search:focus-within { border-color: rgba(197,167,125,.55); }
.genre-nav { display: flex; flex-direction: column; gap: 4px; }
.genre-link { display: flex; min-height: 42px; align-items: center; gap: 12px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; color: #9a9ca5; font-size: 11px; transition: .18s ease; }
.genre-link:hover { background: rgba(255,255,255,.035); color: var(--text); }
.genre-link.active { border-color: rgba(197,167,125,.19); background: rgba(197,167,125,.09); color: #e6d5bd; }
.genre-symbol { width: 17px; color: var(--accent); font-size: 16px; text-align: center; }
.genre-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.genre-count { margin-left: auto; color: #888b95; font-size: 9px; }
.sidebar-spacer { flex: 1; }
.sidebar-admin { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 11px; border: 1px solid rgba(197,167,125,.2); border-radius: 8px; color: var(--accent-bright); font-size: 11px; }
.sidebar-admin span { font-size: 15px; }
.sidebar-note { padding: 17px 10px 0; border-top: 1px solid var(--line); color: #747782; font-size: 9px; }
.sidebar-note .secure-dot { width: 6px; height: 6px; margin-right: 7px; }
.main-area { min-height: 100vh; margin-left: 238px; padding: 0 42px; }
.topbar { display: flex; height: 76px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.topbar-label { color: #727580; font-size: 8px; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; color: #b5b6bd; font-size: 10px; }
.user-avatar { display: inline-grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(197,167,125,.23); border-radius: 50%; background: rgba(197,167,125,.1); color: var(--accent-bright); font-family: var(--display); font-size: 10px; font-weight: 700; }
.icon-button { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: #9a9ca5; font-size: 15px; transition: .2s; }
.icon-button:hover { border-color: rgba(197,167,125,.45); color: var(--accent-bright); }
.mobile-brand { display: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; padding: 40px 0 25px; }
.page-heading h1, .admin-heading-row h1 { margin: 8px 0 5px; font-family: var(--display); font-size: clamp(27px, 3vw, 35px); font-weight: 700; letter-spacing: -.055em; }
.page-subtitle { margin: 0; color: #7e818c; font-size: 11px; }
.page-count { display: flex; align-items: baseline; gap: 7px; padding-bottom: 4px; color: #777a85; font-family: var(--display); font-size: 12px; }
.page-count span { color: var(--accent-bright); font-size: 24px; font-weight: 600; }
.page-count i { color: #555862; font-style: normal; }
.page-count small { margin-left: 5px; color: #777a85; font-family: var(--font); font-size: 8px; letter-spacing: .13em; }
.search-bar { display: flex; height: 46px; align-items: center; gap: 13px; margin-bottom: 26px; padding: 0 7px 0 15px; border: 1px solid rgba(255,255,255,.085); border-radius: 9px; background: #171920; }
.search-icon { color: var(--accent); font-size: 23px; line-height: 1; transform: rotate(-15deg); }
.search-bar input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.search-bar input::placeholder { color: #727580; }
.search-submit { height: 32px; padding: 0 14px; border: 1px solid rgba(197,167,125,.35); border-radius: 6px; background: rgba(197,167,125,.1); color: var(--accent-bright); font-size: 10px; font-weight: 600; }
.search-submit:hover { background: rgba(197,167,125,.2); }
.clear-search { color: #9799a1; font-size: 10px; }
.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.movie-card { min-width: 0; }
.poster-wrap { position: relative; overflow: hidden; aspect-ratio: 2 / 2.95; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: #20222a; box-shadow: 0 8px 22px rgba(0,0,0,.17); }
.poster-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .4s; }
.poster-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 11px; background: linear-gradient(0deg, rgba(7,8,11,.7), rgba(7,8,11,.16)); opacity: 0; transition: opacity .25s; }
.play-badge { display: grid; width: 42px; height: 42px; place-items: center; padding-left: 3px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(18,19,24,.5); color: white; font-size: 12px; }
.poster-open { color: white; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.movie-card:hover .poster-wrap img { transform: scale(1.045); filter: brightness(.75); }
.movie-card:hover .poster-overlay { opacity: 1; }
.movie-meta { padding: 11px 2px 0; }
.movie-meta h2 { overflow: hidden; margin: 0 0 8px; color: #ecebf0; font-family: var(--display); font-size: 12px; font-weight: 650; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.genre-pill { display: inline-flex; min-height: 20px; align-items: center; padding: 3px 8px; border: 1px solid rgba(197,167,125,.21); border-radius: 4px; background: rgba(197,167,125,.075); color: #cdb28d; font-size: 8px; font-weight: 600; letter-spacing: .015em; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin: 39px 0 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.page-arrow { color: #b4b5bd; font-size: 10px; }
.page-arrow:hover { color: var(--accent-bright); }
.page-arrow.disabled { color: #4e515a; }
.page-numbers { display: flex; align-items: center; gap: 6px; }
.page-numbers a, .page-numbers span { display: grid; min-width: 29px; height: 29px; place-items: center; border: 1px solid transparent; border-radius: 6px; color: #92949e; font-size: 10px; }
.page-numbers a:hover { border-color: var(--line); color: var(--text); }
.page-numbers a.current { border-color: rgba(197,167,125,.3); background: rgba(197,167,125,.11); color: var(--accent-bright); }
.empty-state { display: flex; min-height: 360px; align-items: center; justify-content: center; flex-direction: column; padding: 38px 20px; text-align: center; }
.empty-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 17px; border: 1px solid rgba(197,167,125,.22); border-radius: 17px; color: var(--accent); font-size: 24px; }
.empty-state h2 { margin: 0 0 8px; font-family: var(--display); font-size: 17px; }
.empty-state p { max-width: 400px; margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.main-footer { display: flex; justify-content: space-between; margin-top: 46px; padding: 19px 0 23px; border-top: 1px solid var(--line); color: #5d606a; font-size: 8px; letter-spacing: .13em; }

/* Movie detail */
.detail-shell, .admin-shell { min-height: 100vh; }
.detail-topbar { display: flex; height: 75px; align-items: center; justify-content: space-between; padding: 0 5.2vw; border-bottom: 1px solid var(--line); background: rgba(18,20,26,.8); }
.detail-content { max-width: 1120px; margin: 0 auto; padding: 32px 32px 65px; }
.back-link { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 35px; color: #a8aab2; font-size: 11px; }
.back-link:first-letter { color: var(--accent); }
.back-link:hover { color: var(--accent-bright); }
.detail-layout { display: grid; grid-template-columns: minmax(230px, 310px) minmax(0, 1fr); align-items: start; gap: clamp(30px, 5vw, 65px); }
.detail-poster { overflow: hidden; aspect-ratio: 2 / 2.95; border: 1px solid var(--line); border-radius: 10px; background: #20222a; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding-top: 14px; }
.detail-info h1 { margin: 12px 0 13px; font-family: var(--display); font-size: clamp(30px, 4vw, 43px); line-height: 1.12; letter-spacing: -.055em; }
.genre-pill-large { min-height: 24px; padding: 4px 11px; font-size: 9px; }
.detail-description { max-width: 620px; margin: 21px 0 29px; color: #a3a5af; font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.player-card { margin-top: 29px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #171920; }
.player-card-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: #a4a6af; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.player-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(119,189,150,.5); }
.movie-player { display: block; width: 100%; max-height: 540px; border-radius: 7px; background: #050607; }
.player-hint { margin: 11px 0 0; color: #6f727d; font-size: 9px; line-height: 1.6; }

/* Admin */
.admin-topbar { padding: 0 5vw; }
.admin-top-links { display: flex; align-items: center; gap: 22px; }
.admin-top-links > a { color: #9fa1aa; font-size: 10px; }
.admin-top-links > a:hover { color: var(--accent-bright); }
.admin-label { padding: 6px 9px; border: 1px solid rgba(197,167,125,.24); border-radius: 5px; color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.admin-content { max-width: 1280px; margin: 0 auto; padding: 38px 40px 30px; }
.admin-heading-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.admin-heading-row h1 { margin-top: 7px; }
.admin-stat { display: flex; align-items: flex-end; gap: 11px; padding-bottom: 4px; }
.admin-stat strong { color: var(--accent-bright); font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1; }
.admin-stat span { padding-bottom: 3px; color: #777a84; font-size: 8px; letter-spacing: .12em; }
.admin-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 17px; align-items: start; }
.admin-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #171920; }
.admin-card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.admin-card-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(197,167,125,.24); border-radius: 9px; background: rgba(197,167,125,.08); color: var(--accent-bright); font-size: 17px; }
.admin-card-title h2, .recent-heading h2 { margin: 0 0 4px; font-family: var(--display); font-size: 14px; font-weight: 700; }
.admin-card-title p, .recent-heading p { margin: 0; color: #81838d; font-size: 10px; }
.admin-form { display: flex; flex-direction: column; }
.admin-form label { margin-top: 2px; }
.admin-form input:not([type="file"]), .admin-form textarea { width: 100%; min-height: 39px; margin-bottom: 15px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.085); border-radius: 7px; outline: 0; background: #111319; color: var(--text); font-size: 10px; resize: vertical; transition: .2s ease; }
.admin-form textarea { min-height: 72px; line-height: 1.55; }
.admin-form input[type="file"] { width: 100%; color: #9c9ea8; font-size: 9px; }
.admin-form input[type="file"]::file-selector-button { margin-right: 8px; padding: 7px 9px; border: 1px solid rgba(197,167,125,.2); border-radius: 5px; background: rgba(197,167,125,.08); color: var(--accent-bright); font-size: 9px; cursor: pointer; }
.file-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 1px 0 19px; }
.file-field { min-width: 0; padding: 11px; border: 1px dashed rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.015); }
.file-field label { display: block; margin-bottom: 9px; }
.file-field small, .field-help { display: block; margin-top: 7px; color: #737681; font-size: 8px; }
.form-submit { width: 100%; min-height: 42px; margin-top: 3px; font-size: 10px; }
.form-submit span { font-size: 14px; }
.optional-label { margin-left: 5px; color: #727580; font-size: 9px; font-weight: 400; }
.field-help { margin: -9px 0 14px; }
.security-note { display: flex; gap: 8px; margin: 1px 0 16px; color: #81848e; font-size: 9px; line-height: 1.5; }
.security-note span { color: var(--accent); }
.user-list-heading { display: flex; justify-content: space-between; margin-top: 26px; padding: 15px 0 9px; border-top: 1px solid var(--line); color: #777a84; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.user-list-heading span:last-child { color: var(--accent); }
.user-list { display: flex; flex-direction: column; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.045); }
.user-row .user-avatar { width: 29px; height: 29px; }
.user-row-main { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.user-row-main strong { color: #d6d6dc; font-size: 10px; font-weight: 600; }
.user-row-main small { color: #777a84; font-size: 8px; }
.status-dot { width: 6px; height: 6px; }
.status-off { background: #777; box-shadow: none; }
.recent-card { margin-top: 17px; }
.recent-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.recent-heading > a { color: var(--accent-bright); font-size: 9px; }
.recent-table-wrap { overflow-x: auto; }
.recent-table { width: 100%; border-collapse: collapse; text-align: left; }
.recent-table th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #70737e; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.recent-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.045); color: #9b9da6; font-size: 10px; }
.recent-table td:first-child a { color: #e0dfe4; font-weight: 600; }
.recent-table td:first-child a:hover { color: var(--accent-bright); }
.recent-table td:last-child { text-align: right; }
.delete-button { padding: 6px 9px; border: 1px solid rgba(226,140,140,.22); border-radius: 5px; background: transparent; color: #d18c8c; font-size: 8px; }
.delete-button:hover { background: rgba(226,140,140,.09); }
.recent-empty { padding: 25px 0 8px; color: #777a84; font-size: 10px; }

@media (min-width: 1600px) {
  .main-area { padding-right: 56px; padding-left: 56px; }
  .movie-grid { gap: 32px 25px; }
}
@media (max-width: 1200px) {
  .main-area { padding-right: 28px; padding-left: 28px; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-content { padding-right: 28px; padding-left: 28px; }
}
@media (max-width: 900px) {
  .sidebar { width: 205px; }
  .main-area { margin-left: 205px; padding: 0 23px; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 15px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-content { max-width: 740px; }
}
@media (max-width: 640px) {
  .login-card { padding: 34px 25px 25px; }
  .login-card h1 { font-size: 29px; }
  .sidebar { position: static; width: auto; height: auto; padding: 13px 16px 11px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-sidebar { display: none; }
  .sidebar-caption { display: none; }
  .sidebar-search { width: 100%; height: 36px; margin: 0 0 10px; }
  .genre-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 1px; scrollbar-width: none; }
  .genre-nav::-webkit-scrollbar { display: none; }
  .genre-link { min-width: max-content; min-height: 33px; padding: 0 10px; gap: 6px; font-size: 9px; }
  .genre-symbol { width: auto; font-size: 12px; }
  .genre-count, .sidebar-spacer, .sidebar-note { display: none; }
  .sidebar-admin { position: static; align-self: flex-end; margin: 8px 0 0; padding: 7px 9px; font-size: 9px; }
  .sidebar-admin span { font-size: 12px; }
  .main-area { margin-left: 0; padding: 0 16px; }
  .topbar { height: 58px; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 14px; font-weight: 800; letter-spacing: .16em; }
  .mobile-brand .brand-mark-icon { width: 25px; height: 25px; font-size: 14px; }
  .topbar-label { display: none; }
  .topbar-right { gap: 10px; }
  .user-chip { font-size: 9px; }
  .user-avatar { width: 24px; height: 24px; }
  .page-heading { padding: 27px 0 19px; }
  .page-heading h1 { font-size: 28px; }
  .page-count { gap: 5px; }
  .page-count span { font-size: 20px; }
  .page-count small { display: none; }
  .search-bar { height: 42px; margin-bottom: 20px; }
  .search-submit { height: 29px; padding: 0 10px; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .movie-meta { padding-top: 8px; }
  .movie-meta h2 { margin-bottom: 6px; font-size: 11px; }
  .pagination { margin-top: 28px; }
  .page-arrow { font-size: 9px; }
  .page-numbers { gap: 1px; }
  .page-numbers a, .page-numbers span { min-width: 25px; height: 27px; }
  .main-footer { margin-top: 30px; font-size: 7px; }
  .detail-topbar, .admin-topbar { height: 61px; padding: 0 17px; }
  .detail-content { padding: 24px 17px 45px; }
  .back-link { margin-bottom: 23px; }
  .detail-layout { grid-template-columns: 110px minmax(0,1fr); gap: 18px; }
  .detail-info { padding-top: 2px; }
  .detail-info h1 { margin: 8px 0; font-size: 24px; }
  .detail-info .eyebrow { font-size: 7px; }
  .detail-description { grid-column: 1 / -1; margin: 17px 0; font-size: 10px; }
  .player-card { margin-top: 20px; padding: 10px; }
  .movie-player { max-height: 300px; }
  .admin-top-links { gap: 10px; }
  .admin-top-links > a { font-size: 9px; }
  .admin-label { display: none; }
  .admin-content { padding: 27px 15px 25px; }
  .admin-heading-row h1 { font-size: 28px; }
  .admin-stat { gap: 6px; }
  .admin-stat strong { font-size: 22px; }
  .admin-stat span { max-width: 65px; font-size: 7px; line-height: 1.35; }
  .admin-card { padding: 16px; }
  .file-row { grid-template-columns: 1fr; }
  .recent-heading { align-items: flex-start; gap: 10px; }
  .recent-heading > a { white-space: nowrap; }
  .recent-table th, .recent-table td { padding: 10px 7px; }
}
