:root{
  --ttb-bg:#0b0f14;
  --ttb-surface:#10161e;
  --ttb-surface-2:#141c26;
  --ttb-text:#f2f4f7;
  --ttb-muted:rgba(242,244,247,.72);
  --ttb-accent:#f7b500;
  --ttb-accent-2:#ffcc4d;
  --ttb-border:rgba(255,255,255,.10);
}

html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(247,181,0,.08), transparent 50%),
              radial-gradient(900px 500px at 80% 10%, rgba(37,99,235,.10), transparent 55%),
              var(--ttb-bg);
  color:var(--ttb-text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:none; opacity:.95}

/* Header */
.site-header{
  position: absolute;
  top:0; left:0; right:0;
  z-index:20;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.brand-badge{
  background: var(--ttb-accent);
  color:#111;
  font-weight:800;
  padding:4px 8px;
  border-radius:4px;
  font-size:14px;
  letter-spacing:.3px;
}
.brand-text{font-weight:800; letter-spacing:.6px}
.brand-dot{color:var(--ttb-accent)}
.main-nav .nav-link{
  color: rgba(255,255,255,.82);
  font-weight:600;
  font-size:14px;
}
.main-nav .nav-link.active{color: var(--ttb-accent)}
.btn-ticket{
  background: transparent;
  border:1px solid rgba(255,255,255,.28);
  color:#fff;
  border-radius:999px;
  padding:8px 14px;
  font-weight:600;
}
.btn-ticket:hover{border-color:rgba(255,255,255,.42)}

/* Hero carousel */
.hero{
  position:relative;
  min-height:72vh;
}
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item{
  height:72vh;
  min-height:520px;
}
.hero-slide{
  height:72vh;
  min-height:520px;
  background-size:cover;
  background-position:center;
  position:relative;
}
.hero-slide::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.32) 46%, rgba(0,0,0,.62) 100%);
}
.hero-slide::after{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(900px 380px at 50% 100%, rgba(0,0,0,.55), transparent 55%);
}
.hero-content{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  padding: 0 0 60px 0;
  z-index:2;
}
.hero-inner{
  padding: 0 16px;
  max-width: 1180px;
}
.hero-title{
  font-weight:900;
  font-size: clamp(32px, 4vw, 54px);
  line-height:1.05;
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
  margin-bottom: 14px;
}
.hero-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(255,255,255,.32);
  color:#fff;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  background: rgba(0,0,0,.15);
}
.hero-btn:hover{
  background: rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.45);
}
.carousel-indicators [data-bs-target]{
  width:10px; height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.65);
  background: transparent;
  opacity:1;
}
.carousel-indicators .active{
  background: var(--ttb-accent);
  border-color: var(--ttb-accent);
}

/* Section (blur panel) */
.section-panel{
  margin-top:-70px;
  position:relative;
  z-index:5;
}
.panel-surface{
  background: linear-gradient(180deg, rgba(16,22,30,.78), rgba(16,22,30,.58));
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 28px 0 34px;
}
.section-title{
  font-weight:800;
  font-size: 34px;
  margin: 0;
}
.tab-mini{
  gap:18px;
  justify-content:flex-end;
}
.tab-mini .nav-link{
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: rgba(255,255,255,.78);
  font-weight:700;
  font-size: 13px;
}
.tab-mini .nav-link.active{
  color: var(--ttb-accent);
  border-bottom:2px solid var(--ttb-accent);
  padding-bottom:6px;
}

/* Movie scroller */
.movie-scroller{
  display:flex;
  gap: 18px;
  overflow-x:auto;
  padding: 18px 6px 6px;
  scroll-snap-type: x mandatory;
}
.movie-scroller::-webkit-scrollbar{height:10px}
.movie-scroller::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.12);
  border-radius:999px;
}
.movie-card{
  width: 220px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.movie-poster{
  width: 220px;
  height: 320px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  background: rgba(0,0,0,.22);
}
.movie-poster img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.movie-name{
  margin-top:10px;
  font-weight:800;
  font-size: 14px;
  line-height:1.25;
}
.movie-meta{
  color: var(--ttb-muted);
  font-size: 12px;
  margin-top: 3px;
}

/* Footer */
.site-footer{
  border-top:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}

/* Details page */
.details-hero{
  min-height: 52vh;
  background-size:cover;
  background-position:center;
  position:relative;
}
.details-hero::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.34) 50%, rgba(0,0,0,.76) 100%);
}
.details-wrap{
  position:relative;
  z-index:2;
  padding-top: 120px;
  padding-bottom: 36px;
}
.details-grid{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items:start;
}
.details-poster{
  width: 220px;
  height: 320px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
}
.details-poster img{width:100%; height:100%; object-fit:cover}
.badge-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.9);
  font-weight:700;
  font-size: 12px;
}
.section-card{
  background: rgba(16,22,30,.72);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(10px);
}
.time-pill{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  font-weight:700;
  font-size: 13px;
  margin: 6px 8px 0 0;
}
@media (max-width: 991.98px){
  .main-nav{display:none !important;}
  .details-grid{grid-template-columns: 1fr; }
  .details-poster{width: 190px; height: 280px;}
  .movie-card, .movie-poster{width: 190px;}
  .movie-poster{height: 280px;}
}
/* =========================
   PANEL + MOVIES (TTB-like)
========================= */

.section-panel{
  margin-top: -110px;      /* tighter + cleaner overlap */
  position:relative;
  z-index:5;
}

.panel-surface{
  background: linear-gradient(180deg, rgba(16,22,30,.84), rgba(16,22,30,.62));
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 30px 0 40px;
}

.section-title{
  font-weight: 900;
  letter-spacing: .5px;
  font-size: clamp(26px, 2.4vw, 38px);
  margin: 0;
}

.tab-mini{
  gap: 20px;
  justify-content:flex-end;
  margin:0;
}
.tab-mini .nav-link{
  padding: 0 0 6px 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: rgba(255,255,255,.78);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .3px;
}
.tab-mini .nav-link.active{
  color: var(--ttb-accent);
  border-bottom: 2px solid var(--ttb-accent);
}

/* ✅ This is the big fix: centered poster grid like TTB */
.movie-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px);
  justify-content: center;      /* centers posters, no ugly left gap */
  gap: 22px;
  padding: 18px 6px 8px;
}

/* Card */
.movie-card{
  display:block;
  width: 220px;
  border-radius: 16px;
}

/* Poster box - enforce correct shape ALWAYS */
.movie-poster{
  width: 100%;
  aspect-ratio: 2 / 3;          /* ✅ fixes poster height issues */
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 45px rgba(0,0,0,.40);
  background: rgba(0,0,0,.22);
}
.movie-poster img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* Text align like TTB */
.movie-name{
  margin-top: 10px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}
.movie-meta{
  color: var(--ttb-muted);
  font-size: 12px;
  margin-top: 3px;
  text-align: center;
}

/* Mobile: switch to horizontal scroll, like app behavior */
@media (max-width: 768px){
  .section-panel{ margin-top: -80px; }
  .movie-grid{
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    grid-template-columns: none;
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .movie-card{ width: 180px; scroll-snap-align: start; }
}

