
:root{--bg:#041018;--panel:#071a26;--panel2:#0b2433;--line:#12394c;--cyan:#19e3e4;--blue:#2b91ff;--purple:#8a55ff;--text:#edfaff;--muted:#8ea8b7;--green:#41e6a2;--orange:#ff994e}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 50% -10%,#123a52 0,#06131d 30%,#02080d 72%);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}main{min-height:calc(100vh - 115px)}
.topbar{height:70px;position:sticky;top:0;z-index:50;background:#03101aea;border-bottom:1px solid #0d4058;backdrop-filter:blur(18px);display:flex;align-items:center;gap:22px;padding:0 28px}.top-brand{display:flex;align-items:center;gap:9px;font-size:23px;letter-spacing:.5px}.top-brand img{width:42px;height:42px;border-radius:50%;object-fit:cover}.top-brand span{color:var(--cyan)}.topnav{display:flex;gap:18px;font-size:13px;color:#bad0da;flex:1}.topnav a:hover{color:#fff}.top-search{display:flex;border:1px solid #1b4256;border-radius:999px;overflow:hidden;background:#06131d}.top-search input{border:0;background:transparent;color:white;padding:8px 12px;width:240px;outline:0}.top-search button{background:transparent;border:0;color:var(--cyan);padding:0 12px;cursor:pointer}.login-btn{border:1px solid #31566c;padding:9px 14px;border-radius:8px;font-size:13px}.login-btn.admin{border-color:#a9802b;color:#ffd268}
.flash{max-width:900px;margin:14px auto 0;padding:11px 14px;border-radius:9px}.flash.ok{background:#113c31}.flash.error{background:#4a1b28}
.hero{min-height:360px;padding:58px 5vw;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden;border-bottom:1px solid #0d3446;background:linear-gradient(90deg,#06131de8,#06131d99),radial-gradient(circle at 80% 20%,#10445d 0,transparent 44%)}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 60%,#041018);pointer-events:none}.hero-copy{z-index:1;max-width:560px}.hero .kicker{font-size:42px;font-weight:900;line-height:.9}.hero h1{font-size:54px;color:var(--cyan);margin:0 0 12px}.hero p{color:#42d8e5;letter-spacing:1px}.hero-logo-wrap{width:460px;max-width:42vw;z-index:1}.hero-logo-wrap img{width:100%;border-radius:24px;box-shadow:0 0 50px #00d4ff25}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:10px 16px;font-weight:800;border:0;cursor:pointer}.primary{background:linear-gradient(90deg,#11ced8,#1c9fff);color:#00131c}.secondary{background:#0b2130;color:#cfe7f1;border:1px solid #214a60}
.stats-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;max-width:1450px;margin:18px auto;padding:0 28px}.stats-strip>div{background:linear-gradient(145deg,#071723,#0b2230);border:1px solid #0e3d51;border-radius:12px;padding:14px}.stats-strip b{font-size:23px;display:block}.stats-strip span{color:var(--muted);font-size:12px}
.rail{max-width:1500px;margin:28px auto;padding:0 28px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-head h2{margin:0;font-size:20px}.section-head a{color:var(--cyan);font-size:12px}.poster-row{display:grid;grid-auto-flow:column;grid-auto-columns:160px;gap:13px;overflow-x:auto;padding:2px 2px 14px;scrollbar-color:#1e5269 transparent}.poster-card{min-width:0}.poster-card>b{display:block;font-size:12px;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poster-card>small{color:var(--muted)}.poster{height:235px;border-radius:7px;overflow:hidden;background:#0a1c28;position:relative;border:1px solid #204151;transition:.2s}.poster:hover{transform:translateY(-4px);box-shadow:0 12px 30px #0008}.poster img{width:100%;height:100%;object-fit:cover}.poster-fallback{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#15324c,#0b1824)}.poster-fallback span{font-size:70px;font-weight:900;color:#a8d5ea55}.poster-fallback small{font-size:10px;letter-spacing:1px;color:#b8d3df}.poster-fallback.anime{background:linear-gradient(145deg,#41206b,#102848)}.poster-fallback.doc{background:linear-gradient(145deg,#164939,#0b2226)}.poster-fallback.show{background:linear-gradient(145deg,#253f6f,#0a1d2d)}.poster-type,.poster-4k{position:absolute;bottom:6px;font-size:9px;font-weight:900;padding:3px 5px;border-radius:4px}.poster-type{left:6px;background:#06bdd0;color:#00161b}.poster-4k{right:6px;background:#e0b238;color:#171000}
.browse-head{max-width:1450px;margin:28px auto 12px;padding:0 28px;display:flex;justify-content:space-between;gap:20px;align-items:end}.browse-head h1{font-size:34px;margin:0}.browse-head p{color:var(--muted)}.browse-search{display:flex;gap:8px;min-width:440px}.browse-search input,.mini-search input,.edit-form input,.edit-form select,.edit-form textarea,.login-panel input{background:#06131d;color:#fff;border:1px solid #1c465b;border-radius:8px;padding:10px 12px;width:100%;outline:0}.browse-search button,.mini-search button{border:0;border-radius:8px;background:#0d738a;color:white;padding:0 16px}.filter-row{max-width:1450px;margin:0 auto;padding:0 28px;display:flex;gap:8px;overflow-x:auto}.filter-row a{padding:8px 14px;border:1px solid #21465a;border-radius:999px;color:#bcd0d9;white-space:nowrap}.filter-row a.active{background:#067b9c;color:#fff;border-color:#16d3e2}.browse-meta{max-width:1450px;margin:18px auto 5px;padding:0 28px;color:var(--muted)}.poster-grid{max-width:1450px;margin:auto;padding:12px 28px 40px;display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:18px}.poster-grid .poster{height:225px}
.detail{max-width:1180px;margin:50px auto;padding:0 28px;display:grid;grid-template-columns:270px 1fr;gap:42px;align-items:start}.detail-poster{height:400px;border-radius:12px;overflow:hidden;border:1px solid #28546a}.detail-poster>img{width:100%;height:100%;object-fit:cover}.poster-fallback.big span{font-size:120px}.detail-copy h1{font-size:42px;margin:12px 0}.back{color:var(--cyan)}.chips{display:flex;flex-wrap:wrap;gap:8px}.chips span{background:#0b2634;border:1px solid #1e4b60;border-radius:999px;padding:6px 10px;color:#cfe3eb}.description{font-size:16px;line-height:1.7;color:#c4d6dd;max-width:760px}.detail dl{display:grid;grid-template-columns:100px 1fr;max-width:500px}.detail dt{color:var(--muted)}.detail dd{margin:0 0 8px}
.login-shell{min-height:calc(100vh - 115px);display:grid;place-items:center;padding:40px}.login-panel{width:min(480px,100%);background:#071925dd;border:1px solid #175069;border-radius:15px;padding:26px;box-shadow:0 30px 80px #0009;text-align:center}.login-panel img{width:230px;max-height:120px;object-fit:cover;border-radius:14px}.login-panel label{display:block;text-align:left;color:#9db7c4;margin:12px 0}.login-panel .primary{width:100%;margin-top:8px}.permission-note{margin-top:18px;color:#8fa9b7;font-size:12px;line-height:1.7}
.admin-hero,.form-shell{max-width:1450px;margin:28px auto;padding:0 28px}.admin-hero{display:flex;justify-content:space-between;align-items:center}.admin-hero h1,.form-title h1{font-size:34px;margin:5px 0}.admin-hero p,.form-title p{color:var(--muted)}.kicker{color:var(--cyan);letter-spacing:2px;font-weight:800;font-size:11px}.admin-actions,.form-actions{display:flex;gap:9px}.admin-grid{max-width:1450px;margin:18px auto 40px;padding:0 28px;display:grid;grid-template-columns:1fr 260px;gap:18px}.admin-panel,.edit-form,.preview{background:#071925;border:1px solid #173c50;border-radius:14px;padding:18px}.admin-side{display:flex;flex-direction:column;gap:18px}.admin-side .admin-panel{display:flex;flex-direction:column;gap:10px}.admin-side a{border:1px solid #1f475a;border-radius:7px;padding:10px}.admin-side p{color:var(--muted);font-size:13px}.mini-search{display:flex;width:330px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;padding:10px;border-bottom:1px solid #153546;font-size:13px}th{color:#7fa4b5;font-size:10px;text-transform:uppercase;letter-spacing:1px}.row-actions{display:flex;gap:6px}.row-actions form{margin:0}.row-actions button{background:none;border:0;color:#ff7590;cursor:pointer}.row-actions>a{color:var(--cyan)}.form-shell{max-width:1050px}.edit-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.edit-form label{display:flex;flex-direction:column;gap:6px;color:#9fb9c6;font-size:13px}.edit-form .wide{grid-column:1/-1}.edit-form .check{flex-direction:row;align-items:center}.check input{width:auto}.preview{margin-top:18px}
footer{height:45px;border-top:1px solid #0c3242;color:#477486;display:grid;place-items:center;font-size:10px;letter-spacing:2px}
.empty{padding:40px;color:var(--muted)}
@media(max-width:1050px){.topnav{display:none}.top-search{margin-left:auto}.hero{min-height:300px}.hero .kicker{font-size:34px}.hero h1{font-size:46px}.stats-strip{grid-template-columns:repeat(3,1fr)}.admin-grid{grid-template-columns:1fr}.admin-side{display:grid;grid-template-columns:1fr 1fr}.browse-head{align-items:stretch;flex-direction:column}.browse-search{min-width:0}.detail{grid-template-columns:220px 1fr}.detail-poster{height:330px}}
@media(max-width:700px){.topbar{height:auto;min-height:62px;padding:9px 12px;gap:9px;flex-wrap:wrap}.top-brand{font-size:17px}.top-brand img{width:34px;height:34px}.top-search{order:3;width:100%}.top-search input{width:100%}.login-btn{margin-left:auto}.hero{padding:38px 20px;min-height:240px}.hero-logo-wrap{display:none}.hero .kicker{font-size:29px}.hero h1{font-size:40px}.stats-strip{grid-template-columns:repeat(2,1fr);padding:0 14px}.rail,.browse-head,.filter-row,.browse-meta,.poster-grid,.admin-hero,.admin-grid,.form-shell{padding-left:14px;padding-right:14px}.poster-row{grid-auto-columns:135px}.poster{height:200px}.poster-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.poster-grid .poster{height:190px}.detail{grid-template-columns:1fr;padding:0 18px;margin-top:24px}.detail-poster{width:220px;height:330px}.detail-copy h1{font-size:32px}.admin-hero{align-items:flex-start;flex-direction:column;gap:12px}.admin-side{grid-template-columns:1fr}.edit-form{grid-template-columns:1fr}.edit-form .wide{grid-column:auto}.mini-search{width:100%}}
.request-shell{max-width:900px;margin:48px auto;padding:0 20px}.request-card{background:linear-gradient(145deg,#071925,#0b2230);border:1px solid #175069;border-radius:18px;padding:28px;box-shadow:0 28px 70px #0008}.request-form{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:22px}.request-form label{display:flex;flex-direction:column;gap:6px;color:#9fb9c6}.request-form input,.request-form textarea,.request-form select{background:#06131d;color:#fff;border:1px solid #1c465b;border-radius:8px;padding:11px 12px}.request-form .wide{grid-column:1/-1}.already-box{display:flex;flex-direction:column;background:#123b32;border:1px solid #2c8067;border-radius:11px;padding:14px;margin-top:18px}.already-box b{color:#77f0bd}.success-card{text-align:center}.success-icon{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#123b32;color:#75f3bf;font-size:32px}.request-list{max-width:1200px;margin:0 auto 40px;padding:0 28px;display:flex;flex-direction:column;gap:12px}.request-item{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#071925;border:1px solid #173c50;border-radius:14px;padding:18px}.request-title{font-size:20px;font-weight:800}.request-meta{margin-top:4px;color:#8fa9b7;font-size:12px}.request-badge{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#ff5a77;color:white;font-size:12px}@media(max-width:700px){.request-form{grid-template-columns:1fr}.request-form .wide{grid-column:auto}.request-item{align-items:flex-start;flex-direction:column}.request-list{padding:0 14px}}
/* v3.4 compact home + larger navigation */
.topbar{min-height:76px;height:76px;padding:0 24px;gap:24px}
.top-brand{font-size:21px}.top-brand img{width:42px;height:42px}.topnav{gap:20px}.topnav a{font-size:14px;font-weight:700}
.hero.hero-compact{min-height:220px;height:220px;padding:20px 28px;display:flex;align-items:center;justify-content:center}
.hero-center{display:flex;align-items:center;justify-content:center;gap:28px;z-index:1}
.hero-mark{width:112px;height:112px;object-fit:contain;filter:drop-shadow(0 0 22px #00c8ff33)}
.hero-copy.compact-copy{max-width:none}.hero-copy.compact-copy .kicker{font-size:34px;line-height:1}.hero-copy.compact-copy h1{font-size:44px;line-height:1;margin:6px 0 0}
@media(max-width:700px){.hero.hero-compact{height:170px;min-height:170px;padding:14px}.hero-center{gap:16px}.hero-mark{width:78px;height:78px}.hero-copy.compact-copy .kicker{font-size:23px}.hero-copy.compact-copy h1{font-size:31px}.topbar{min-height:68px;height:auto}}
/* =========================================================
   RUTYFLIX RESPONSIVE NAVIGATION
   ========================================================= */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 1px solid #176078;
  border-radius: 10px;
  background: #071a26;
  color: #19e3e4;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}


/* ---------- TABLET / SMALL WINDOW ---------- */

@media (max-width: 1050px) {

  .topbar {
    height: auto;
    min-height: 72px;
    padding: 10px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .top-brand {
    flex: 1;
  }

  .menu-toggle {
    display: flex;
    order: 2;
  }

  .login-btn {
    order: 3;
    margin-left: 0;
  }

  .top-search {
    order: 4;
    width: 100%;
    margin-left: 0;
  }

  .top-search input {
    width: 100%;
  }

  .topnav {
    display: none !important;
    order: 5;
    width: 100%;
    flex: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px;
    background: #061722;
    border: 1px solid #143c50;
    border-radius: 12px;
  }

  body.menu-open .topnav {
    display: flex !important;
  }

  .topnav a {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #c3d8e1;
  }

  .topnav a:hover {
    background: #0b2938;
    color: #19e3e4;
  }
}


/* ---------- PHONE ---------- */

@media (max-width: 700px) {

  .topbar {
    padding: 8px 10px 10px;
    gap: 8px;
  }

  .top-brand {
    font-size: 18px;
    gap: 7px;
  }

  .top-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 0;
  }

  .menu-toggle {
    width: 40px;
    height: 38px;
    font-size: 22px;
  }

  .login-btn {
    padding: 9px 11px;
    font-size: 12px;
  }

  .top-search {
    margin-top: 3px;
  }

  .top-search input {
    min-width: 0;
    padding: 10px 13px;
    font-size: 14px;
  }

  .topnav {
    margin-top: 2px;
  }

  .topnav a {
    padding: 14px;
    font-size: 16px;
  }


  /* Compact home hero */

  .hero.hero-compact {
    height: 150px;
    min-height: 150px;
    padding: 14px 10px;
  }

  .hero-center {
    gap: 13px;
  }

  .hero-mark {
    width: 68px;
    height: 68px;
  }

  .hero-copy.compact-copy .kicker {
    font-size: 22px;
  }

  .hero-copy.compact-copy h1 {
    font-size: 29px;
  }


  /* Stats */

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 10px;
    gap: 9px;
  }

  .stats-strip > div {
    padding: 13px;
  }


  /* Movie rails */

  .rail {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 24px;
  }

  .poster-row {
    grid-auto-columns: 135px;
    gap: 10px;
  }

  .poster {
    height: 200px;
  }


  /* Browse page */

  .browse-head,
  .filter-row,
  .browse-meta,
  .poster-grid,
  .admin-hero,
  .admin-grid,
  .form-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .poster-grid .poster {
    height: 230px;
  }


  /* Admin */

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-side {
    grid-template-columns: 1fr;
  }

  .edit-form {
    grid-template-columns: 1fr;
  }

  .edit-form .wide {
    grid-column: auto;
  }


  /* Media details */

  .detail {
    grid-template-columns: 1fr;
    padding: 0 14px;
  }

  .detail-poster {
    width: 210px;
    height: 315px;
  }
}
.login-panel img {
  width: 130px;
  height: 130px;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
}
/* =========================================================
   RUTYFLIX MOBILE HAMBURGER MENU
   ========================================================= */

.mobile-menu {
  display: none;
}

@media (max-width: 1050px) {

  .desktop-nav {
    display: none !important;
  }

  .topbar {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 14px;
  }

  .top-brand {
    flex: 1;
    order: 1;
  }

  .mobile-menu {
    display: block;
    position: relative;
    order: 2;
  }

  .mobile-menu summary {
    list-style: none;
    width: 42px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #071a26;
    color: #19e3e4;

    border: 1px solid #176078;
    border-radius: 10px;

    font-size: 24px;
    font-weight: bold;

    cursor: pointer;
    user-select: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu[open] summary {
    color: #ffffff;
    border-color: #19e3e4;
  }

  .mobile-nav {
    position: absolute;
    right: 0;
    top: 48px;

    width: 230px;
    z-index: 9999;

    display: flex;
    flex-direction: column;

    padding: 8px;

    background: #061722;

    border: 1px solid #17475b;
    border-radius: 12px;

    box-shadow: 0 14px 35px rgba(0,0,0,.55);
  }

  .mobile-nav a {
    display: block;

    padding: 13px 14px;

    color: #c9dde5;
    text-decoration: none;
    font-weight: 700;

    border-radius: 8px;
  }

  .mobile-nav a:hover {
    background: #0b2938;
    color: #19e3e4;
  }

  .login-btn {
    order: 3;
  }

  .top-search {
    order: 4;
    width: 100%;
    margin-left: 0;
  }

  .top-search input {
    width: 100%;
    min-width: 0;
  }
}


@media (max-width: 600px) {

  .topbar {
    padding: 7px 10px 10px;
  }

  .top-brand img {
    width: 38px;
    height: 38px;
  }

  .top-brand {
    font-size: 18px;
  }

  .mobile-menu summary {
    width: 40px;
    height: 38px;
    font-size: 22px;
  }

  .mobile-nav {
    right: -4px;
    width: min(260px, calc(100vw - 20px));
  }
}

/* Featured rotation */
.featured-row {
  transition: opacity .35s ease;
}

.featured-fading {
  opacity: .15;
}

.missing-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   RUTYFLIX REQUEST NAV BUTTON
   ========================================================= */

.topnav .request-nav,
.mobile-nav .request-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 7px 13px;

  color: #c9dde5;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;

  background:
    linear-gradient(
      110deg,
      rgba(61, 25, 115, .58),
      rgba(11, 41, 75, .72)
    );

  border: 1px solid rgba(89, 91, 255, .8);
  border-radius: 999px;

  box-shadow:
    0 0 7px rgba(91, 48, 255, .32),
    0 0 12px rgba(0, 201, 255, .14);

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    transform .2s ease;
}

.topnav .request-nav:hover,
.mobile-nav .request-nav:hover {
  color: #ffffff;

  background:
    linear-gradient(
      110deg,
      rgba(74, 29, 135, .7),
      rgba(10, 53, 91, .8)
    );

  border-color: rgba(24, 218, 255, .9);

  box-shadow:
    0 0 9px rgba(108, 54, 255, .45),
    0 0 15px rgba(0, 207, 255, .22);

  transform: translateY(-1px);
}

.request-plane {
  color: #55dfff;
  font-size: 13px;
  line-height: 1;
  transform: rotate(-18deg);
}


/* Keep it clean inside the phone hamburger menu */

@media (max-width: 1050px) {
  .mobile-nav .request-nav {
    width: 100%;
    margin-top: 5px;
    padding: 12px 14px;
  }
}
