:root {
    --primary: #c8a24a;     /* Emas Luxury */
    --primary-dark: #a5822f;
    --accent: #e50914;
    --dark: #ffffff;        
    --dark-2: #f8f9fa;
    --gray: #6b6b6b;
    --light-gray: #fdfbf7;  
    --white: #ffffff;
    --text-main: #222222;   
    --success: #16a34a;
    --warning: #f59e0b;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--light-gray);
    color: var(--text-main);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,.04);
    border-bottom: 1px solid rgba(200,162,74,.3);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.navbar .logo { font-size: 22px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.navbar .logo span { color: var(--primary); }
.navbar nav ul { display: flex; gap: 28px; }
.navbar nav a { color: #666; font-weight: 600; font-size: 15px; transition: color .2s; }
.navbar nav a:hover, .navbar nav a.active { color: var(--primary); }
.navbar .nav-right { display: flex; align-items: center; gap: 14px; }

/* ===== BUTTONS & CHIPS ===== */
.btn { display: inline-block; padding: 10px 22px; border-radius: 30px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; text-align: center; }
.user-chip { color: var(--text-main); font-size: 14px; display: flex; align-items: center; gap: 8px; background: #f4f2ec; padding: 8px 14px; border-radius: 30px; }

/* ===== SECTION ===== */
.section { padding: 40px 0; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.section-title .tabs { display: flex; gap: 10px; }
.section-title .tabs a { padding: 8px 18px; border-radius: 30px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--gray); border: 1px solid #ddd; }
.section-title .tabs a.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== MOVIE GRID ===== */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.movie-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); border: 1px solid #f0f0f0; transition: transform .2s, box-shadow .2s; }
.movie-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(200,162,74,.15); border-color: rgba(200,162,74,.3); }
.movie-card .poster-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #ddd; }
.movie-card .poster-wrap img { width: 100%; height: 100%; object-fit: cover; }
.movie-card .rating-badge { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.9); color: var(--primary-dark); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(200,162,74,.4); }
.movie-card .info { padding: 14px; }
.movie-card .info h3 { font-size: 15px; margin-bottom: 6px; height: 40px; overflow: hidden; }
.movie-card .info .genre { font-size: 12px; color: var(--gray); margin-bottom: 10px; }

/* ===== MOVIE DETAIL & OTHER PAGES ===== */
.movie-detail-hero { background: var(--white); color: var(--text-main); padding: 40px 0; border-bottom: 1px solid #eaeaea; }
.movie-detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 34px; }
.movie-detail-grid .poster { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.movie-detail-grid h1 { font-size: 32px; margin-bottom: 10px; }
.meta-tags { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.meta-tags span { background: #f4f2ec; color: var(--text-main); padding: 5px 14px; border-radius: 20px; font-size: 13px; border: 1px solid #e5decb; }
.schedule-box { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,.03); border: 1px solid #eaeaea; margin-bottom: 20px; }
.cinema-block { border-bottom: 1px dashed #e0e0e0; padding: 18px 0; }
.cinema-block:last-child { border-bottom: none; }
.cinema-block h3 { font-size: 17px; margin-bottom: 4px; color: var(--primary-dark); }
.cinema-block .city { color: var(--gray); font-size: 13px; margin-bottom: 12px; }
.time-slots { display: flex; gap: 10px; flex-wrap: wrap; }
.time-slots a { border: 1.5px solid var(--primary); color: var(--primary); padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all .2s; }
.time-slots a:hover { background: var(--primary); color: white; }
.seat-wrap { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,.03); border: 1px solid #eaeaea; }
.screen-label { text-align: center; color: var(--gray); font-size: 13px; margin-bottom: 26px; text-transform: uppercase; letter-spacing: 2px; }
.screen-bar { height: 6px; background: linear-gradient(90deg, transparent, var(--primary), transparent); margin-bottom: 6px; border-radius: 3px; }
.seat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; justify-content: center; }
.seat-row .row-label { width: 20px; color: var(--gray); font-weight: 700; font-size: 13px; }
.seat { width: 32px; height: 32px; border-radius: 6px; background: #f4f2ec; border: 1px solid #e5decb; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 600; color: #666; transition: all .15s; }
.seat:hover:not(.booked) { background: #e5decb; color: #333; }
.seat.selected { background: var(--primary); color: white; border-color: var(--primary); }
.seat.booked { background: #ddd; color: #999; cursor: not-allowed; border-color: #ddd; }
.legend { display: flex; gap: 20px; justify-content: center; margin-top: 24px; font-size: 13px; }
.legend .box { display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.booking-summary { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,.03); border: 1px solid #eaeaea; position: sticky; top: 90px; }
.booking-summary h3 { margin-bottom: 14px; color: var(--primary-dark); }
.booking-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed #eee; }
.booking-summary .total { font-weight: 700; font-size: 18px; color: var(--primary); }
.form-box { max-width: 420px; margin: 60px auto; background: white; padding: 36px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.05); border: 1px solid #eaeaea; }
.form-box h2 { margin-bottom: 6px; color: var(--text-main); }
.form-box p.sub { color: var(--gray); margin-bottom: 24px; font-size: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #555;}
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; transition: border .2s; background: #fafafa; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: #fff; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ticket-card { max-width: 480px; margin: 40px auto; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); border: 1px solid #eaeaea; }
.ticket-card .top { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 24px; text-align: center; }
.ticket-card .top h2 { font-size: 20px; }
.ticket-card .body { padding: 24px; }
.ticket-card .body .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.ticket-card .code-box { text-align: center; padding: 20px; background: #fdfbf7; border-top: 2px dashed #ddd; }
.ticket-card .code-box .code { font-size: 24px; font-weight: 800; letter-spacing: 2px; color: var(--primary-dark); }
footer { background: var(--white); color: #777; padding: 30px 0; text-align: center; font-size: 13px; margin-top: 60px; border-top: 1px solid #eaeaea; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }

/* ===== BOTTOM TAB BAR (mobile only) ===== */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid #eaeaea; box-shadow: 0 -4px 20px rgba(0,0,0,.05); z-index: 200; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 0 8px; font-size: 10.5px; font-weight: 700; color: #999; transition: color .15s; }
.bottom-nav a .icon { width: 21px; height: 21px; line-height: 1; display: flex; }
.bottom-nav a .icon svg { width: 100%; height: 100%; fill: currentColor; }
.bottom-nav a.active { color: var(--primary); }

/* =========================================
   TICKER (TEKS BERJALAN)
   ========================================= */
.ticker-wrap {
    background: var(--primary); color: var(--white); display: flex;
    align-items: center; font-size: 13px; font-weight: 600; overflow: hidden; height: 40px;
}
.ticker-heading {
    background: var(--primary-dark); padding: 0 16px; height: 100%;
    display: flex; align-items: center; white-space: nowrap; z-index: 2;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.ticker { flex: 1; overflow: hidden; position: relative; height: 100%; display: flex; align-items: center; }
.ticker__inner { display: inline-block; white-space: nowrap; animation: ticker-scroll 25s linear infinite; }
.ticker__item { margin-right: 50px; }
@keyframes ticker-scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* =========================================
   HERO SLIDER (SILINDER SUDUT MELENGKUNG)
   ========================================= */
.hero-slider-wrap {
    width: 100%;
    background: transparent;
    padding: 30px 0; /* Memberi ruang agar bayangan dan sudut bulat terlihat */
}
.slider-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 24px; /* Membuat sudut menjadi bulat/silinder */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Bayangan agar elemen lebih hidup */
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.8s ease-in-out;
    display: flex; align-items: flex-end; /* Memindahkan teks ke bawah */
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.65); /* Digelapkan sedikit agar teks kontras */
}
.slide-content {
    position: absolute;
    bottom: 30px; /* Teks diturunkan */
    left: 40px;   /* Diatur ke kiri */
    text-align: left;
    color: white;
    z-index: 2;
    max-width: 600px; /* Membatasi lebar teks */
}
.slide-content h2 {
    font-size: 26px; /* Font diperkecil */
    margin-bottom: 12px;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.7);
    line-height: 1.3;
}
.slide-content p {
    font-size: 15px;
    color: #e5e5e5;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    margin-bottom: 16px;
}
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.4); color: white; border: none;
    font-size: 22px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; transition: 0.3s; border-radius: 50%;
}
.slider-btn:hover { background: var(--primary); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* =========================================
   SPOTLIGHT SECTION
   ========================================= */
.spotlight-section {
    padding: 50px 0;
    background: #eef0f4; /* Warna abu-abu halus ala TIX ID */
}
.spotlight-title {
    font-size: 26px; font-weight: 800; margin-bottom: 24px;
    color: #111; text-transform: uppercase; letter-spacing: -0.5px;
}
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.spotlight-card { background: transparent; }
.spotlight-card img {
    width: 100%; height: 200px; object-fit: cover;
    border-radius: 16px; /* Silinder Spotlight */
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.spotlight-card h4 {
    font-size: 16px; color: #222; line-height: 1.4;
    font-weight: 700;
}

/* =========================================
   TIX NOW / NEWS BLOG SECTION
   ========================================= */
.news-section {
    padding: 60px 0;
    background: var(--white);
}
.news-title {
    font-size: 28px; font-weight: 800; margin-bottom: 30px;
    color: #111; text-transform: uppercase;
}
.news-container { display: flex; gap: 50px; }
.news-left { flex: 2; }
.news-right { flex: 1; }

/* Blog Kiri (Gambar + Deskripsi Kanan) */
.news-card {
    display: flex; gap: 24px; margin-bottom: 34px;
}
.news-card img {
    width: 260px; height: 160px; object-fit: cover;
    border-radius: 12px; flex-shrink: 0;
}
.news-card-info h3 { font-size: 20px; margin-bottom: 10px; color: #222; line-height: 1.3; font-weight: 700; }
.news-card-info .date { font-size: 13px; color: #999; margin-bottom: 12px; display: block; }
.news-card-info p { font-size: 14.5px; color: #555; line-height: 1.6; }

/* Blog Kanan (List MORE NEWS) */
.more-news-header {
    display: flex; align-items: center;
    margin-bottom: 24px;
}
.more-news-header span {
    font-size: 14px; font-weight: 800; text-transform: uppercase;
    color: #111; padding-right: 14px;
}
.more-news-header::after {
    content: ""; flex: 1; height: 1px; background: #222; /* Garis horizontal hitam */
}
.more-news-item {
    padding: 18px 0;
    border-bottom: 1px solid #ddd; /* Garis pemisah antar list */
}
.more-news-item:first-of-type { padding-top: 0; }
.more-news-item h4 {
    font-size: 16px; color: #333; line-height: 1.5; font-weight: 700;
    transition: color 0.2s; cursor: pointer;
}
.more-news-item:hover h4 { color: var(--primary); }

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 860px) {
    .navbar nav { display: none; }
    .movie-detail-grid { grid-template-columns: 1fr; }
    .movie-detail-grid .poster { max-width: 200px; margin: 0 auto 20px; }
    .navbar .print-ticket-link span { display: none; }
    .navbar .print-ticket-link { padding: 8px 12px; }
    .navbar .user-chip, .navbar .nav-right > a.btn-outline[href="logout.php"] { display: none; }
    .navbar .nav-right { gap: 8px; }
    body { padding-bottom: 64px; }
    
    /* Hero Slider Mobile */
    .slider-container { height: 250px; border-radius: 16px; }
    .slide-content { left: 20px; bottom: 20px; }
    .slide-content h2 { font-size: 20px; }
    .slider-btn { width: 34px; height: 34px; font-size: 18px; }
    
    /* Horizontal Scroll untuk Movie dan Spotlight */
    .movie-grid, .spotlight-grid {
        display: flex; overflow-x: auto; gap: 14px;
        scroll-snap-type: x mandatory; padding-bottom: 10px;
    }
    .movie-grid::-webkit-scrollbar, .spotlight-grid::-webkit-scrollbar { height: 5px; }
    .movie-grid::-webkit-scrollbar-thumb, .spotlight-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
    .movie-card { flex: 0 0 150px; scroll-snap-align: start; }
    .spotlight-card { flex: 0 0 85%; scroll-snap-align: start; }
    
    /* TIX NOW Responsive */
    .news-container { flex-direction: column; gap: 40px; }
    .news-card { flex-direction: column; gap: 14px; }
    .news-card img { width: 100%; height: 200px; }
}