/* Website CSS started */
:root {
    --bg-0: #0b0f1a;
    --bg-1: #0f172a;
    --bg-2: #111827;
    --glass: rgba(17, 25, 40, 0.62);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #f97316;
    --accent-2: #22d3ee;
    --accent-3: #a855f7;
}
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Outfit", "Segoe UI", sans-serif;
    background-color: var(--bg-0);
    color: var(--text);
}
body.site-bg {
    background-image:
        radial-gradient(1200px 600px at 10% -10%, rgba(34, 211, 238, 0.15), transparent 55%),
        radial-gradient(900px 400px at 90% 0%, rgba(168, 85, 247, 0.2), transparent 50%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    background-attachment: fixed;
    position: relative;
    z-index: 0;
}
body.site-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}
.container { flex: 1; }
a {
    color: inherit;
    text-decoration: none;
}
a:hover { color: #fff; }
img { max-width: 100%; }
h1, h2, h3, h4, h5 {
    font-family: "Unbounded", "Outfit", sans-serif;
    letter-spacing: -0.02em;
}
.text-muted { color: var(--muted) !important; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--accent-2);
    font-weight: 600;
}
.hero-title {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    color: var(--muted);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}
.stat-card {
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}
.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}
.chip:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.18);
}
.btn-accent {
    background: linear-gradient(120deg, var(--accent), #fb7185);
    border: none;
    color: #0b0f1a;
    font-weight: 700;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
}
.btn-accent:hover { filter: brightness(1.05); }
.btn-outline-ghost {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
}
.btn-outline-ghost:hover {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.12);
}
.search-hero {
    padding: 0.25rem;
    border-radius: 999px;
}
.search-hero .form-control {
    background: transparent;
    color: #fff;
    border: none;
    box-shadow: none;
}
.search-hero .form-control::placeholder { color: rgba(255, 255, 255, 0.7); }
.search-hero .form-control:focus { box-shadow: none; }
.site-footer, footer {
    background: linear-gradient(135deg, rgba(6, 8, 16, 0.98), rgba(12, 20, 34, 0.98));
    color: #fff;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.movie-card, .review-card, .cast-item {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}
.movie-card:hover, .review-card:hover, .cast-item:hover {
    transform: scale(1.05);
}
.platform-logo {
    max-width: 120px;
    width: auto;
    height: 48px;
    object-fit: contain;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    filter: drop-shadow(0 2px 10px rgba(30,144,255,0.18));
}
.platform-logo-inline {
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(30,144,255,0.16));
}
@media (max-width: 768px) {
    .platform-logo { height: 42px; max-width: 100px; }
}
.navbar.nav-blur {
    background: rgba(8, 12, 24, 0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}
.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.02em;
}
.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75) !important;
}
.nav-link.active, .nav-link:hover {
    color: #fff !important;
}
.nav-cta {
    background: linear-gradient(120deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}
.footer-menu-item { width: 50%; }
.footer-menu-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--font-weight-light);
    display: inline-block;
    vertical-align: top;
    margin: 4px 0;
}
.footer-menu-link:hover { color: #fff; }
.section-heading { margin-bottom: 30px; }
.genre-btn {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    display: inline-flex;
    margin-bottom: 5px;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    user-select: none;
}
.genre-btn:hover {
    border-color: rgba(249, 115, 22, 0.8);
    color: #fff;
    background: rgba(249, 115, 22, 0.2);
}
/* Sidebar Styles */
.sidebar {
    background: rgba(255,255,255,0.25) !important;
    box-shadow: 0 4px 24px rgba(31,38,135,0.12);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 20px;
}
/* Cast Item Styles */
.cast-item {
    padding: 5px;
    background: #e9ecef;
    transition: all 0.3s;
}
.cast-item:hover {
    background: #cfe2ff;
    padding: 10px;
}
.cast-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 2px solid #dee2e6;
}
.cast-item h6 { font-size: 16px; font-weight: 600; }
.cast-item small { font-size: 14px; }
.cast-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}
.yt-iframe { border-radius: 10px; }
.accordion-header { border: 2px solid #fff; }
/* Accordion Item Styling */
.accordion-button {
    border: 1px solid #444;
    color: #fff;
    font-weight: bold;
    background: grey;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.accordion-button:hover {
    transform: scale(1.02);
    background: #4966b2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.accordion-button:not(.collapsed) { color: #000; }
.accordion-collapse { transition: all 0.3s; }
.accordion-collapse.show .accordion-body {
    padding: 15px;
    max-height: 500px;
    transition: all 0.4s;
}
.accordion-button::after { transition: transform 0.4s; }
.accordion-button:not(.collapsed)::after { transform: rotate(180deg); }
.gradient-text, .title-text {
    background: linear-gradient(120deg, #ffffff, #67e8f9, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: color 0.4s, background 0.4s;
}
.title-text {
    color: #e0e0e0;
    display: inline-block;
    font-size: 1.3rem;
}
.glass-effect, .normal-glass {
    background: var(--glass);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    transition: all 0.35s ease;
    position: relative;
    color: #e5e7eb !important;
}
.glass-effect:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(34, 211, 238, 0.18);
    border-color: rgba(34, 211, 238, 0.35);
    z-index: 2;
}
/* Hero Section Glass Effect */
.hero-glass ,.hero-glass-inline {
    background: var(--glass);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
}
.hero-glass {
    margin-bottom: 2rem;
    padding: 2rem;

}
.hero-glass-inline {
    display: inline-block;
    padding: 1rem;
    margin-bottom: 1rem;
}
.section-title {
    background: linear-gradient(120deg, rgba(34, 211, 238, 0.22), rgba(168, 85, 247, 0.25));
    backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 0.85rem 1.2rem;
    display: inline-block;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.18);
}
/* Carousel Card Styles */
.fixed-poster, .upcoming-carousel .card-img-top {
    height: 520px;
    object-fit: cover;
    width: 100%;
    border-radius: 0.5rem;
}
.upcoming-carousel .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.release-date { font-size: 0.9rem; }
.custom-owl-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
/* Genre Card Glass Effect */
.genre-card {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 4px 24px rgba(31,38,135,0.12);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    transition: all 0.3s;
}
.genre-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(31,38,135,0.18);
}
.glow {
    box-shadow: 0 0 30px hsl(270,80%,60%,0.3);
}
.btn-trailer {
    background: linear-gradient(90deg,#0a3440 0%,#1e90ff 100%);
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(30,144,255,0.08);
}
.btn-trailer:hover {
    background: linear-gradient(90deg,#ff416c 0%,#ff4b2b 100%);
    color: #fff;
    transform: scale(1.02);
}
.btn-trailer svg { margin-right: 8px; }
.bg-gradient-primary {
    background: linear-gradient(90deg,#0a3440 0%,#1e90ff 100%);
}
.left-radius {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}
.info-card p { color: #929090; }
.info-card h5 { color: #c6c6c6; }
.custom-btn {
    background: linear-gradient(120deg, rgba(34, 211, 238, 0.35), rgba(168, 85, 247, 0.6));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.12);
}
.custom-btn:hover {
    background: linear-gradient(120deg, rgba(249, 115, 22, 0.9), rgba(251, 113, 133, 0.9));
    border-color: rgba(249, 115, 22, 0.6);
}
/* --- Card + Carousel Equal Height --- */
#upcoming-releases .owl-carousel .item,
#upcoming-releases .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#upcoming-releases .card-body {
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Ensures consistent height for all cards */
    height: 100%;
}
#upcoming-releases .card-img-top {
    height: 350px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
@media (max-width: 768px) {
    #upcoming-releases .card-img-top { height: 250px; }
}
/* Improved Accordion Styles */
.accordion {
    background: transparent;
}
.accordion-item {
    background: rgba(30,30,40,0.5);
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 16px rgba(31,38,135,0.10);
    border: 1px solid rgba(255,255,255,0.10);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.accordion-item:hover {
    box-shadow: 0 4px 24px rgba(31,38,135,0.18);
    border-color: rgba(255,255,255,0.18);
}
.accordion-header {
    border: none;
    background: transparent;
    padding: 0;
}
.accordion-button {
    border: none;
    color: #fff;
    font-weight: 600;
    background: rgba(60,60,80,0.7);
    box-shadow: none;
    border-radius: 0;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
}
.accordion-button:focus, .accordion-button:active,
.accordion-button:hover, .accordion-button:not(.collapsed) {
    background: rgba(80,80,120,0.9);
    color: #ffd700;
    box-shadow: 0 2px 8px rgba(47,0,255,0.2);
}
.accordion-button::after {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.4s;
}
.accordion-collapse {
    background: rgba(30,30,40,0.7);
    border-radius: 0 0 16px 16px;
    transition: max-height 0.4s, background 0.3s;
}
.accordion-body {
    color: #e0e0e0;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    border-radius: 0 0 16px 16px;
}
.accordion-collapse.show .accordion-body {
    background: rgba(30,30,40,0.85);
    color: #fff;
    box-shadow: 0 2px 16px rgba(31,38,135,0.10);
}
section.row.g-3.justify-content-around {
    margin: 2rem 0;
}
/* Glass effect cards */
.glass-effect {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}
.glass-effect:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(34, 211, 238, 0.18);
    border-color: rgba(34, 211, 238, 0.35);
}
.glass-effect::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.glass-effect:hover::before { opacity: 1; }
/* .glass-effect p { color: #cfd3e0; font-size: 0.95rem; letter-spacing: 0.3px; } */
.glass-effect h5 { color: #fff; font-weight: 700; font-size: 1.15rem; }
.glass-effect .small { color: #9ca3af; }
.glass-effect svg { transition: transform 0.3s; }
.glass-effect:hover svg { transform: scale(1.15); }
/* Theatrical (blue) */
.text-primary { color: #3b82f6 !important; }
/* Streaming (cyan/light blue) */
.text-info { color: #06b6d4 !important; }
.info-badges {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 0.5rem 0;
    font-family: monospace;

}
.rating {
    color: #ff9800;
    background: rgba(40,30,10,0.85);
}
.runtime {
    color: #00bcd4;
    background: rgba(10,30,40,0.85);
}
.release {
    color: #fff;
    background: rgba(60,60,80,0.85);
}
.storyline-content{
    font-size: 1.4rem;
    font-family: monospace;
}
.card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
}
/* Title clamping for equal card heights */
.card-title,
.movie-title,
.trending-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.8em;
    line-height: 1.4;
}
.card-title a { display: block; }

/* Card alignment + equal heights */
.card.glass-effect,
.card.normal-glass {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card.glass-effect .card-body,
.card.normal-glass .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.card.glass-effect .card-text,
.card.normal-glass .card-text {
    flex-grow: 1;
}
.movie-card .card-img-top {
    height: 360px;
    object-fit: cover;
}
.trending-card .card-img-top {
    height: 420px;
    object-fit: cover;
}
.upcoming-carousel .card-body {
    justify-content: space-between;
}
@media (max-width: 768px) {
    .movie-card .card-img-top,
    .trending-card .card-img-top { height: 300px; }
}

/* Engagement enhancements */
.hero-surface {
    padding: 2.5rem;
    border-radius: 28px;
}
.hero-featured {
    overflow: hidden;
    border-radius: 22px;
}
.hero-featured img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-featured:hover img { transform: scale(1.03); }
.hero-featured .featured-body {
    padding: 1.4rem 1.6rem;
}
.trending-card {
    position: relative;
    overflow: hidden;
}
.trending-card img {
    height: 420px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.trending-card:hover img { transform: scale(1.05); }
.trending-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(6, 8, 16, 0.85) 70%);
}
.trending-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.trending-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}
.section-kicker {
    color: var(--muted);
    font-size: 1rem;
}
.feature-card {
    padding: 1.6rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    height: 100%;
}
.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}
.feature-card p { color: var(--muted); }
.cta-panel {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.25));
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.cta-panel .btn-accent { box-shadow: 0 14px 28px rgba(249, 115, 22, 0.18); }
.search-results .card {
    background: rgba(10, 12, 22, 0.75);
}
@media (max-width: 991px) {
    .hero-surface { padding: 2rem 1.5rem; }
    .hero-featured img { height: 280px; }
}
