/* ==========================================================================
   CINEHUB - COMPLETE FLUID & MOBILE RESPONSIVE DESIGN SYSTEM
   Theme: Premium Dark Cinema (#0f0f0f) with Neon Green Accents (#08d474)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Philosopher:wght@400;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0f0f0f;
    --bg-card: #161616;
    --bg-card-hover: #1e1e1e;
    --bg-hover: #222222;
    --bg-nav: #141414;
    --accent-green: #08d474;
    --accent-green-hover: #06b060;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #777777;
    --border-color: #262626;

    --btn-red: #e53935;
    --btn-red-hover: #c62828;
    --btn-blue: #0088cc;
    --btn-blue-hover: #006699;
    --btn-gold: #f5c518;
    --btn-gold-hover: #e0b000;

    --font-heading: 'Philosopher', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --header-height: 72px;
    --max-site-width: 1440px;
}

/* ==========================================
   GLOBAL RESETS & FLUID BOXING
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    max-width: 100%;
}

/* ==========================================
   RAINBOW TOP BAR (Animated)
   ========================================== */
.rainbow-header {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
            #ff0000, #ff4000, #ff8000, #ffbf00, #ffff00, #bfff00,
            #80ff00, #40ff00, #00ff00, #00ff40, #00ff80, #00ffbf,
            #00ffff, #00bfff, #0080ff, #0040ff, #0000ff, #4000ff,
            #8000ff, #bf00ff, #ff00ff, #ff00bf, #ff0080, #ff0040, #ff0000);
    background-size: 400% 100%;
    animation: rainbowSlide 20s linear infinite;
    position: relative;
    z-index: 1000;
}

@keyframes rainbowSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 400% 0%; }
}

/* ==========================================
   HEADER & DESKTOP NAVIGATION
   ========================================== */
header.main-header {
    background-color: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    width: 100%;
}

.header-container {
    max-width: var(--max-site-width);
    margin: 0 auto;
    padding: 0 clamp(14px, 2.5vw, 28px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo img {
    height: 38px;
    width: auto;
    border-radius: 6px;
}

.brand-logo .logo-text {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 25px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.brand-logo .logo-text span {
    color: var(--accent-green);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 22px);
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 14.5px;
    font-weight: 600;
    color: #e0e0e0;
    padding: 10px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link i {
    color: var(--accent-green);
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--accent-green);
}

/* Desktop Dropdown Submenus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-green);
    border-radius: 0 0 8px 8px;
    min-width: 240px;
    padding: 10px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #cccccc;
    border-radius: 4px;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background-color: rgba(8, 212, 116, 0.12);
    color: var(--accent-green);
}

/* Header Right Actions */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-wrapper {
    position: relative;
    width: clamp(160px, 18vw, 230px);
    max-width: 100%;
}

.search-input {
    width: 100%;
    background-color: #080808;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 8px 16px 8px 36px;
    color: #fff;
    font-size: 13.5px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(8, 212, 116, 0.3);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-green);
    font-size: 13px;
    pointer-events: none;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: min(92vw, 420px);
    background: #141414;
    border: 1px solid #333333;
    border-top: 3px solid var(--accent-green, #08d474);
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 999999;
    display: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.search-results-dropdown::-webkit-scrollbar {
    width: 5px;
}
.search-results-dropdown::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 4px;
}

.search-results-dropdown.active {
    display: block !important;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #202020;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover,
.search-item.selected {
    background: #222222;
    border-left: 3px solid var(--accent-green, #08d474);
    padding-left: 17px;
}

.search-item img {
    width: 42px;
    height: 58px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    border: 1px solid #333;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-info h4 {
    font-size: 13.5px;
    color: #ffffff;
    margin: 0 0 2px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.search-item-info p {
    font-size: 12px;
    color: var(--accent-green, #08d474);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(8, 212, 116, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(8, 212, 116, 0.3);
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.header-login-btn:hover {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 212, 116, 0.35);
}

.mobile-toggle,
.mobile-search-toggle {
    display: none;
    background: #1c1c1c;
    border: 1px solid #333;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-toggle:hover,
.mobile-search-toggle:hover {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
}

/* ==========================================
   MOBILE NAVIGATION DRAWER & BACKDROP
   ========================================== */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    background: #121212;
    border-right: 1px solid #262626;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #202020;
    background: #161616;
}

.mobile-close-btn {
    background: #222;
    border: 1px solid #333;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-close-btn:hover {
    background: var(--btn-red);
    color: #fff;
    border-color: var(--btn-red);
}

.mobile-drawer-search {
    padding: 14px 18px;
    border-bottom: 1px solid #202020;
    background: #141414;
}

.mobile-drawer-search .search-wrapper {
    width: 100%;
}

.mobile-drawer-content {
    overflow-y: auto;
    flex-grow: 1;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    border-bottom: 1px solid #1a1a1a;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #e5e5e5;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-link span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-link i:first-child {
    color: var(--accent-green);
    width: 18px;
    text-align: center;
}

.mobile-nav-item.active > .mobile-nav-link,
.mobile-nav-link:hover {
    color: var(--accent-green);
    background: rgba(8, 212, 116, 0.08);
}

.dropdown-arrow {
    font-size: 12px;
    color: #777;
    transition: transform 0.25s ease;
}

.mobile-nav-item.expanded .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent-green);
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    background: #0d0d0d;
    border-top: 1px solid #1c1c1c;
    padding: 10px 14px;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mobile-nav-item.expanded .mobile-dropdown-menu {
    display: grid;
}

.mobile-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: #bbb;
    background: #141414;
    border-radius: 6px;
    border: 1px solid #222;
}

.mobile-dropdown-menu li a i {
    font-size: 10px;
    color: var(--accent-green);
}

.mobile-dropdown-menu li a:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.mobile-drawer-actions {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #222;
    background: #141414;
}

.mobile-action-btn {
    width: 100%;
    justify-content: center;
    font-size: 13.5px;
    padding: 11px 16px;
    border-radius: 8px;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   HERO FEATURED CAROUSEL
   ========================================== */
.hero-section {
    max-width: var(--max-site-width);
    margin: 20px auto 30px auto;
    padding: 0 clamp(14px, 2.5vw, 28px);
    width: 100%;
}

.hero-slider-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid #252525;
    background: #000;
    width: 100%;
}

.hero-slide {
    display: none;
    position: relative;
    height: clamp(340px, 48vh, 440px);
    background-size: cover;
    background-position: center;
    align-items: center;
    width: 100%;
}

.hero-slide.active {
    display: flex;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0f0f0fe6 0%, #0f0f0fb3 55%, rgba(15,15,15,0.4) 100%);
    display: flex;
    align-items: center;
    padding: clamp(20px, 4vw, 40px) clamp(20px, 4vw, 60px);
}

.hero-content {
    max-width: 650px;
    z-index: 2;
    min-width: 0;
}

.hero-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--accent-green);
    color: #000;
    font-weight: 700;
    font-size: 11.5px;
    padding: 4px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-imdb {
    background-color: #f5c518;
    color: #000;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 4vw, 36px);
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 6px;
}

.hero-sinhala-title {
    font-size: clamp(14px, 2.5vw, 18px);
    color: var(--accent-green);
    margin-bottom: 12px;
    font-weight: 600;
}

.hero-synopsis {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-main {
    background-color: var(--accent-green);
    color: #000;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-main:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 212, 116, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.slider-arrows {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.arrow-btn:hover {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
}

/* ==========================================
   MAIN LAYOUT & GRID ARCHITECTURE
   ========================================== */
.main-wrapper {
    max-width: var(--max-site-width);
    margin: 0 auto 50px auto;
    padding: 0 clamp(14px, 2.5vw, 28px);
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: clamp(20px, 2.5vw, 32px);
    width: 100%;
}

.main-wrapper.layout-fullwidth {
    grid-template-columns: 1fr;
}

.main-wrapper.layout-fullwidth .movies-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(14px, 1.8vw, 22px);
}

.content-column {
    min-width: 0;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.8vw, 24px);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.section-title i {
    color: var(--accent-green);
}

.genre-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.filter-chip {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #bbb;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.filter-chip:hover,
.filter-chip.active {
    background-color: var(--accent-green);
    color: #000;
    font-weight: 700;
    border-color: var(--accent-green);
}

/* ==========================================
   MOVIE GRID & POSTER CARDS
   ========================================== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.8vw, 20px);
    width: 100%;
}

.movie-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(8, 212, 116, 0.25);
    border-color: var(--accent-green);
}

.poster-box {
    position: relative;
    aspect-ratio: 2 / 3;
    width: 100%;
    overflow: hidden;
    background-color: #0a0a0a;
}

.poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .poster-box img {
    transform: scale(1.06);
}

.card-badge-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.88);
    color: #f5c518;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(245, 197, 24, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.imdb-tag,
.card-badge-rating .imdb-tag {
    background: #f5c518;
    color: #000000;
    font-weight: 900;
    font-size: 9px;
    padding: 1px 3.5px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    line-height: 1.1;
    display: inline-block;
}

.card-badge-quality {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-green);
    color: #000;
    font-weight: 800;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-badge-sub {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--accent-green);
    font-weight: 600;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--accent-green);
}

.movie-card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.movie-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.movie-card-sinhala {
    font-size: 11.5px;
    color: var(--accent-green);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    border-top: 1px solid #222;
    padding-top: 6px;
    gap: 4px;
}

.movie-card-meta span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   DETAIL HERO BANNER (Single Movie & TV)
   ========================================== */
.single-hero-banner {
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 2px solid var(--accent-green);
    width: 100%;
}

.single-hero-overlay {
    background: linear-gradient(to top, #0f0f0f 15%, rgba(15,15,15,0.8) 100%);
    padding: clamp(25px, 4vw, 50px) clamp(14px, 2.5vw, 28px) 30px clamp(14px, 2.5vw, 28px);
}

.single-hero-container {
    max-width: var(--max-site-width);
    margin: 0 auto;
    display: flex;
    gap: clamp(16px, 3vw, 30px);
    align-items: flex-end;
    flex-wrap: wrap;
    width: 100%;
}

.single-hero-poster {
    width: clamp(140px, 20vw, 220px);
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--accent-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    flex-shrink: 0;
}

.single-hero-info {
    flex-grow: 1;
    min-width: 240px;
    color: #fff;
}

.single-hero-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.single-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3.8vw, 36px);
    line-height: 1.2;
    margin-bottom: 6px;
}

.single-hero-sinhala {
    font-size: clamp(15px, 2.2vw, 20px);
    color: var(--accent-green);
    margin-bottom: 12px;
    font-weight: 600;
}

.single-hero-meta {
    display: flex;
    gap: clamp(10px, 2vw, 20px);
    font-size: clamp(12px, 1.8vw, 14px);
    color: #ccc;
    flex-wrap: wrap;
}

/* ==========================================
   VIDEO SOURCES & DOWNLOAD BUTTONS
   ========================================== */
.v-source-item {
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.v-source-item:hover,
.v-source-item.active {
    background: #252525 !important;
    border-color: var(--accent-green) !important;
}

.v-source-item.active .source-title {
    color: var(--accent-green) !important;
}

.download-section-box {
    background-color: #1c1c1c;
    border-radius: 12px;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid #2a2a2a;
    margin-top: 24px;
    width: 100%;
}

.download-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dl-btn {
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    min-height: 48px;
    gap: 10px;
    width: 100%;
}

.dl-btn-direct {
    background: var(--btn-red) !important;
    color: #ffffff !important;
}

.dl-btn-direct:hover {
    background: var(--btn-red-hover) !important;
    transform: translateX(4px);
}

.dl-btn-telegram {
    background: var(--btn-blue) !important;
    color: #ffffff !important;
}

.dl-btn-telegram:hover {
    background: var(--btn-blue-hover) !important;
    transform: translateX(4px);
}

.dl-btn-subtitle {
    background: var(--btn-gold) !important;
    color: #111111 !important;
}

.dl-btn-subtitle:hover {
    background: var(--btn-gold-hover) !important;
    transform: translateX(4px);
}

.dl-btn .left-grp {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dl-btn .right-grp {
    font-size: 12.5px;
    opacity: 0.9;
    font-weight: 600;
    flex-shrink: 0;
}

/* ==========================================
   SIDEBAR & WIDGETS
   ========================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.widget {
    background-color: var(--bg-card);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 100%;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--accent-green);
}

.top-imdb-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-imdb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #111111;
    transition: background 0.2s;
}

.top-imdb-item:hover {
    background: #202020;
}

.imdb-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--accent-green);
    color: #000;
    font-weight: 800;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.imdb-info {
    flex-grow: 1;
    min-width: 0;
}

.imdb-info h5 {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imdb-info p {
    font-size: 11.5px;
    color: #888;
}

.imdb-score {
    color: #f5c518;
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

/* Social Promo Carousel Widget */
.social-carousel-widget {
    position: relative;
    border: none;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.social-carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.social-slide {
    min-width: 100%;
    width: 100%;
    padding: 26px 20px 30px 20px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.social-slide.slide-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
}

.social-slide.slide-whatsapp {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
}

.social-slide.slide-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d51ab 100%);
}

.social-icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon-circle i {
    font-size: 24px;
    color: #ffffff;
}

.social-slide h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2;
}

.social-slide p {
    font-size: 12px;
    opacity: 0.92;
    margin-bottom: 16px;
    line-height: 1.4;
    max-width: 250px;
}

.btn-social-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.btn-social-join.btn-telegram { color: #0088cc; }
.btn-social-join.btn-whatsapp { color: #075e54; }
.btn-social-join.btn-facebook { color: #1877f2; }

.btn-social-join:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.social-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.social-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-carousel-dots .dot.active {
    background: #ffffff;
    width: 18px;
    border-radius: 10px;
}

.social-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.2s ease;
    font-size: 11px;
}

.social-carousel-arrow.prev { left: 8px; }
.social-carousel-arrow.next { right: 8px; }

/* ==========================================
   REQUEST PAGE STYLES
   ========================================== */
.request-page-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    align-items: start;
    width: 100%;
}

.request-sidebar-form {
    background: #161616;
    border: 1px solid #262626;
    border-radius: 14px;
    padding: clamp(18px, 2.5vw, 26px);
    position: sticky;
    top: 90px;
    width: 100%;
}

.request-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.request-stat-box {
    background: #161616;
    border: 1px solid #262626;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: transform 0.2s, border-color 0.2s;
    min-width: 0;
}

.request-stat-box:hover {
    transform: translateY(-2px);
    border-color: #383838;
}

.request-stat-box .stat-lbl {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.request-stat-box .stat-num {
    font-size: 20px;
    font-weight: 700;
}

.request-item-card {
    background: #161616;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: border-color 0.2s;
    width: 100%;
}

.request-item-card:hover {
    border-color: #383838;
}

/* ==========================================
   FOOTER (FLUID & MAXIMUM SCREEN OPTIMIZATION)
   ========================================== */
footer.main-footer {
    background-color: #0a0a0a;
    border-top: 1px solid var(--border-color);
    padding: clamp(35px, 4vw, 55px) 0 25px 0;
    margin-top: 50px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.footer-container {
    max-width: var(--max-site-width);
    margin: 0 auto;
    padding: 0 clamp(16px, 2.5vw, 32px);
    width: 100%;
    box-sizing: border-box;
}

.footer-alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-alert.success {
    background: rgba(8, 212, 116, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.footer-alert.error {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
    border: 1px solid #ff5252;
}

.footer-alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* Main 5-Column Responsive Fluid Grid */
.footer-columns-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 0.9fr) 1.5fr;
    gap: clamp(20px, 2.5vw, 35px);
    margin-bottom: clamp(25px, 3vw, 40px);
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.footer-col {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-brand-text {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px 0;
    border-bottom: 2px solid var(--accent-green);
    display: inline-block;
    padding-bottom: 4px;
    align-self: flex-start;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: #aaa;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.2s, transform 0.2s;
    line-height: 1.4;
}

.footer-link i {
    font-size: 11px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.footer-link:hover {
    color: var(--accent-green);
    transform: translateX(3px);
}

/* Newsletter Block & Input Groups */
.footer-col-newsletter {
    min-width: 0;
    width: 100%;
}

.newsletter-block {
    margin-bottom: 14px;
    width: 100%;
}

.newsletter-label {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.newsletter-form-group {
    display: flex;
    gap: 6px;
    width: 100%;
    align-items: stretch;
}

.newsletter-input {
    background: #161616;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    flex: 1 1 auto;
    min-width: 0;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 8px rgba(8, 212, 116, 0.25);
}

.newsletter-btn {
    padding: 8px 14px;
    font-size: 12.5px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.newsletter-btn.btn-sms {
    background: #0088cc;
    border-color: #0088cc;
    color: #fff;
}

.newsletter-btn.btn-sms:hover {
    background: #0077b3;
}

/* Social Channels */
.social-channels-block {
    margin-top: 4px;
    width: 100%;
}

.social-channels-label {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-icons-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 17px;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid;
    flex-shrink: 0;
}

.social-icon-btn.whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.4);
}

.social-icon-btn.telegram {
    background: rgba(0, 136, 204, 0.12);
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.4);
}

.social-icon-btn.facebook {
    background: rgba(24, 119, 242, 0.12);
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.4);
}

.social-icon-btn.youtube {
    background: rgba(255, 0, 0, 0.12);
    color: #FF0000;
    border-color: rgba(255, 0, 0, 0.4);
}

.social-icon-btn.tiktok {
    background: rgba(254, 44, 85, 0.12);
    color: #fe2c55;
    border-color: rgba(254, 44, 85, 0.4);
}

.social-icon-btn:hover {
    transform: translateY(-2px) scale(1.08);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.footer-copy {
    margin: 0;
    font-size: 13px;
    color: #777;
}

.footer-tagline {
    margin: 0;
    font-size: 13px;
    color: #888;
}

/* ==========================================
   BREAKPOINTS & RESPONSIVE RESTRUCTURING
   ========================================== */

/* Laptops & Desktops with 1024px - 1240px */
@media (max-width: 1240px) {
    .footer-columns-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }

    .footer-col-newsletter {
        grid-column: 1 / -1;
        background: #111;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #222;
        margin-top: 10px;
    }

    .main-wrapper.layout-fullwidth .movies-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet Landscape & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }

    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .request-page-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .request-sidebar-form {
        position: static;
    }
}

/* Tablet Portrait & Mobile Header (<= 991px) */
@media (max-width: 991px) {
    .nav-menu {
        display: none !important;
    }

    .mobile-toggle,
    .mobile-search-toggle {
        display: inline-flex;
    }

    #headerSearchWrapper {
        display: none;
    }

    #headerSearchWrapper.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #141414;
        padding: 10px 16px;
        border-bottom: 1px solid #282828;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
        z-index: 1000;
    }

    .header-container {
        height: 64px;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }

    .footer-col-newsletter {
        grid-column: 1 / -1;
    }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .hero-section {
        margin: 15px auto 25px auto;
    }

    .hero-slide {
        height: 380px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(15,15,15,0.3) 0%, rgba(15,15,15,0.85) 60%, #0f0f0f 100%);
        padding: 20px 16px;
        align-items: flex-end;
    }

    .hero-actions {
        margin-top: 10px;
    }

    .hero-actions .btn-main {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    .slider-arrows {
        bottom: 12px;
        right: 14px;
    }

    .movies-grid,
    .main-wrapper.layout-fullwidth .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .movie-card-info {
        padding: 10px;
    }

    .movie-card-title {
        font-size: 13.5px;
    }

    .movie-card-sinhala {
        font-size: 11.5px;
        margin-bottom: 6px;
    }

    .genre-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        margin-bottom: 18px;
        scrollbar-width: none;
    }

    .genre-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .single-hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .single-hero-poster {
        width: 150px;
        margin: 0 auto;
    }

    .single-hero-badges,
    .single-hero-meta {
        justify-content: center;
    }

    .dl-btn {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
    }

    .dl-btn .right-grp {
        margin-top: 2px;
        align-self: flex-end;
    }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
    .header-container {
        height: 58px;
    }

    .brand-logo img {
        height: 30px;
    }

    .header-login-btn span {
        display: none;
    }

    .header-login-btn {
        padding: 7px 10px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .mobile-toggle,
    .mobile-search-toggle {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .movies-grid,
    .main-wrapper.layout-fullwidth .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-badge-rating,
    .card-badge-quality,
    .card-badge-sub {
        font-size: 9.5px;
        padding: 2px 4px;
    }

    .request-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .request-stat-box {
        padding: 10px 8px;
    }

    .request-stat-box .stat-num {
        font-size: 18px;
    }

    .request-item-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
    }

    .upvote-btn {
        width: 100%;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 8px 14px !important;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Extra Small Phones (<= 360px) */
@media (max-width: 360px) {
    .brand-logo .logo-text {
        font-size: 18px;
    }

    .movies-grid,
    .main-wrapper.layout-fullwidth .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .movie-card-info {
        padding: 8px 6px;
    }

    .movie-card-title {
        font-size: 12.5px;
    }
}

/* ==========================================
   PWA INSTALL BANNER PROMPT STYLES
   ========================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    visibility: hidden;
    width: calc(100% - 32px);
    max-width: 460px;
    background: linear-gradient(135deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid #08d474;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 15px rgba(8, 212, 116, 0.2);
    z-index: 99999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
}

.pwa-install-banner.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pwa-banner-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #000;
    border: 1px solid #282828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-text h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
}

.pwa-banner-text p {
    font-size: 12px;
    color: #aaa;
    margin: 0;
    line-height: 1.35;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-btn-install {
    background: var(--accent-green, #08d474);
    color: #000;
    font-weight: 700;
    font-size: 12.5px;
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s, background 0.2s;
    white-space: nowrap;
}

.pwa-btn-install:hover {
    transform: scale(1.05);
}

.pwa-btn-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.pwa-btn-close:hover {
    color: #fff;
}