/* ==========================================================================
   NMDB Modern Cinema UI Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primarycolor: #f59e0b;
    --primary-hover: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.25);
    --bg-dark: #0b0f17;
    --bg-card: #131b2e;
    --bg-card-hover: #1c2742;
    --bg-glass: rgba(19, 27, 46, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(245, 158, 11, 0.4);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --primaryfont: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--primaryfont);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.main-body {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
    flex: 1;
}

.vertical-ad, .horizontal-ad {
    display: none !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.top-bar .wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.top-bar #siteTitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.brand-badge {
    background: linear-gradient(135deg, var(--primarycolor), #f97316);
    color: #000;
    font-size: 0.875rem;
    font-weight: 900;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

/* Search Box */
#searcharea {
    position: relative;
    width: 340px;
    max-width: 100%;
}

#searchbox {
    position: relative;
    width: 100%;
}

#searchbox input[type='text'] {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    outline: none;
    transition: var(--transition);
}

#searchbox::before {
    content: '🔍';
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0.6;
    pointer-events: none;
}

#searchbox input[type='text']:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primarycolor);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

#searchbox input[type='text']::placeholder {
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* Search Suggestions Dropdown */
.suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    max-height: 420px;
    overflow-y: auto;
    z-index: 200;
    padding: 0.4rem;
}

.suggestions li {
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    transition: var(--transition);
    overflow: hidden;
}

.suggestions li:hover, .suggestions li:focus {
    background: var(--bg-card-hover);
}

.suggestions li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    color: var(--text-main);
}

.suggestions .suggestion-img {
    width: 44px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.suggestions .suggestion-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestions span {
    flex: 1;
    min-width: 0;
}

.suggestions .suggestion-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestions .suggestion-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Social Icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icons a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primarycolor);
    border-color: var(--primarycolor);
    transform: translateY(-2px);
}

.social-icons svg {
    width: 15px;
    height: 15px;
}

/* Tab Bar Navigation */
.tab-bar {
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0 1.25rem;
    margin-bottom: 1.5rem;
}

.tab-bar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.tab-bar li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.tab-bar li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-bar li a.active, .tab-bar li.active a {
    background: linear-gradient(135deg, var(--primarycolor), #f97316) !important;
    color: #000 !important;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--accent-glow);
}

/* ==========================================================================
   Page Headers & Section Titles
   ========================================================================== */

.page-heading {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(19, 27, 46, 0.6));
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.page-heading h1, .page-heading-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-heading p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.wrapper-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0 1rem;
    text-decoration: none;
}

.homepagelistingh2 {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.homepagelistingh2 h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.homepagelistingh2 small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primarycolor);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.wrapper-title:hover .homepagelistingh2 small {
    transform: translateX(4px);
}

/* ==========================================================================
   Movie Cards Grid & Modern Aesthetics
   ========================================================================== */

.movies-list {
    position: relative;
    width: 100%;
}

.movies-list-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.movies-list-wrapper > a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.movies-list-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.movies-list-wrapper > a:hover .movies-list-item {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);
}

.movies-list-item-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/23;
    background: #0f1523;
    overflow: hidden;
}

.movies-list-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movies-list-wrapper > a:hover .movies-list-item-img img {
    transform: scale(1.05);
}

/* Floating Watch Badge */
.badge-2 {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
    z-index: 5;
}

.movies-list-item-content {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.movies-list-item-content h3, .movies-list-item-content h4, .movie-title h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.movies-list-wrapper > a:hover h3, .movies-list-wrapper > a:hover h4 {
    color: var(--primarycolor);
}

.movie-list-item-content-meta, .movie-title-tala p, .mits {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

.movie-list-item-content-meta span.rank-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primarycolor);
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
}

/* ==========================================================================
   Filter Buttons & UI Groups (Catalog / Browse)
   ========================================================================== */

.browse-page {
    padding-top: 0.5rem;
}

.ui-group-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.custom-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.custom-btn-group button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.custom-btn-group a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.custom-btn-group a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.custom-btn-group button.is-checked a,
.custom-btn-group button.active a {
    background: var(--primarycolor);
    color: #000;
    font-weight: 700;
    border-color: var(--primarycolor);
    box-shadow: 0 2px 10px var(--accent-glow);
}

/* Pagination Bar */
.liquid {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 1rem;
}

.num-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.num-group .pagnu {
    background: transparent;
    border: none;
    padding: 0;
}

.num-group .pagnu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.num-group .pagnu a:hover {
    color: #fff;
    border-color: var(--primarycolor);
}

.num-group .pagnu.active a,
.num-group .pagnu.is-checked a {
    background: var(--primarycolor);
    color: #000;
    font-weight: 700;
    border-color: var(--primarycolor);
}

/* ==========================================================================
   Movie Single / Detail Page
   ========================================================================== */

.single-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.single-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.single-meta span.genre-chip {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primarycolor);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, var(--primarycolor), #f97316);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 18px var(--accent-glow);
    transition: var(--transition);
    white-space: nowrap;
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

/* Video Player Container */
.trailer {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.trailer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Detail Info Two-Column Layout */
.cover-synopsis {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.left-sy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.left-sy img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.right-sy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.synopsis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.synopsis-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.synopsis-card p {
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.7;
}

.cast-crew-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cast-crew-card .row-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.cast-crew-card b {
    color: var(--primarycolor);
    min-width: 90px;
    font-weight: 600;
}

.cast-crew-card a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cast-crew-card a:hover {
    color: var(--primarycolor);
}

/* Streaming Platforms Card */
.brandlogowrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.brandlogowrapper h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.brandlogos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.brandlogos a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.brandlogos a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primarycolor);
}

.brandlogos a img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* Get Notified Form */
.notified_form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.notified_form input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
    outline: none;
}

.notified_form input:focus {
    border-color: var(--primarycolor);
}

.notified_form button {
    padding: 0.65rem 1.25rem;
    background: var(--primarycolor);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.notified_form button:hover {
    background: var(--primary-hover);
}

/* ==========================================================================
   Showtimes Page Styles
   ========================================================================== */

.showtime-schedule {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.showtime-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    transition: var(--transition);
}

.showtime-card:hover {
    border-color: var(--border-hover);
}

.showtime-card-img {
    aspect-ratio: 16/23;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.showtime-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showtime-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.hall-group {
    margin-bottom: 1rem;
}

.hall-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primarycolor);
    margin-bottom: 0.5rem;
}

.times-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.time-pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: #070a10;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    list-style: none;
}

.footer-links-group li a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links-group li a:hover {
    color: var(--primarycolor);
    padding-left: 4px;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.875rem;
    outline: none;
}

.subscribe-form input:focus {
    border-color: var(--primarycolor);
}

.subscribe-form button {
    padding: 0.65rem 1.25rem;
    background: var(--primarycolor);
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background: var(--primary-hover);
}

.footer-about p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.site-info {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.footer-bottom-links a:hover {
    color: var(--primarycolor);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .movies-list-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar .wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .top-bar-left {
        justify-content: space-between;
    }
    #searcharea {
        width: 100%;
    }
    .movies-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
    .cover-synopsis {
        grid-template-columns: 1fr;
    }
    .left-sy {
        max-width: 220px;
        margin: 0 auto;
    }
    .single-header {
        flex-direction: column;
    }
    .single-title {
        font-size: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .site-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-body {
        padding: 0 0.75rem 2rem;
    }
    .movies-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .showtime-card {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Interactive Movie Media Theater & Playlist
   ========================================== */
.media-theater {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.25rem;
    margin-bottom: 2rem;
    background: var(--card-bg, #1a1a24);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.theater-player-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theater-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.theater-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.theater-now-playing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.now-playing-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c084fc;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.now-playing-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.now-playing-sub {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

.theater-playlist-col {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.playlist-header {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.playlist-count-badge {
    font-size: 0.75rem;
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.playlist-items-scroll {
    overflow-y: auto;
    max-height: 380px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.4rem;
}

.playlist-items-scroll::-webkit-scrollbar {
    width: 5px;
}
.playlist-items-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
.playlist-items-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

.playlist-item.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5);
}

.playlist-item-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.playlist-item.active .playlist-item-num {
    background: #a855f7;
    color: #fff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.playlist-item-info {
    flex: 1;
    overflow: hidden;
}

.playlist-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item.active .playlist-item-title {
    color: #d8b4fe;
}

.playlist-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.playlist-item-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.playlist-item-duration {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
}

.playing-bars {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.playlist-item.active .playing-bars {
    display: flex;
}

.playing-bars span {
    width: 2px;
    background: #c084fc;
    border-radius: 1px;
    animation: soundWaves 0.8s ease-in-out infinite alternate;
}

.playing-bars span:nth-child(2) {
    animation-delay: 0.2s;
}
.playing-bars span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes soundWaves {
    0% { height: 3px; }
    100% { height: 14px; }
}

@media (max-width: 900px) {
    .media-theater {
        grid-template-columns: 1fr;
    }
    .playlist-items-scroll {
        max-height: 260px;
    }
}
