/* Core Styling & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0e0e11;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}



/* Intro Overlay Style */
#nexces-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  animation: fadeOutIntro 0.5s ease 3s forwards;
}

/* N Logo Container */
.nexces-logo-container {
  position: relative;
  width: 100px;
  height: 180px;
  animation: zoomLogo 1.6s ease-out 1.4s forwards;
}

/* N Ribbon Base Style */
.n-ribbon {
  position: absolute;
  top: 0;
  width: 32px;
  height: 100%;
  background: linear-gradient(135deg, #00f5ff 0%, #a855f7 50%, #ec4899 100%);
}

.n-ribbon.left {
  left: -10px;
  z-index: 2;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  transform-origin: top center;
  transform: scaleY(0);
  animation: drawLeft 1.2s 1.4s ease-out forwards;
}

.n-ribbon.middle {
  left: 65px;
  z-index: 3;
  background: linear-gradient(135deg, #00f5ff 0%, #a855f7 50%, #ec4899 100%);
  transform-origin: bottom left;
  transform: scaleY(0) skewX(0deg);
  animation: drawDiagonal 0.9s 1.1s ease-out forwards;
}

.n-ribbon.right {
  right: 0;
  z-index: 1;
  transform-origin: top center;
  transform: scaleY(0);
  animation: drawRight 0.6s 0.8s ease-out forwards;
}

/* Animations */
@keyframes drawDiagonal {
  0% {
    transform: scaleY(0) skewX(0deg);
    width: 32px;
  }
  100% {
    transform: scaleY(1) skewX(21deg);
    width: 36px;
  }
}

@keyframes drawRight {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes drawLeft {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes zoomLogo {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes fadeOutIntro {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


/* Floating Glass Capsule Navigation Bar */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 30px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.navbar {
    width: 100%;
    max-width: 1350px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(14, 14, 17, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-logo #siteLogo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 6px 0;
}

.nav-links a i {
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff1e1e;
    border-radius: 2px;
    box-shadow: 0 0 10px #ff1e1e;
}

/* Right Actions (Search, Notifications, Profile) */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-left {
    position: absolute;
    left: 14px;
    color: #71717a;
    font-size: 0.9rem;
    pointer-events: none;
}

.nav-search input {
    background-color: rgba(28, 28, 33, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 9px 14px 9px 38px;
    border-radius: 30px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    width: 240px;
}

.nav-search input:focus {
    border-color: #ff1e1e;
    background-color: rgba(28, 28, 33, 0.95);
    width: 290px;
    box-shadow: 0 0 12px rgba(255, 30, 30, 0.25);
}

.icon-btn, .profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(28, 28, 33, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover, .profile-btn:hover {
    background-color: #27272a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Live Search Dropdown CSS */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background-color: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 2000;
}

.search-results-dropdown.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 1px solid #27272a;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #27272a;
}

.search-result-img {
    width: 45px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff1e1e;
}

.search-result-desc {
    font-size: 0.75rem;
    color: #a1a1aa;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #a1a1aa;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(14,14,17,0.3) 0%, rgba(14,14,17,0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #ff0000;
    text-shadow: 0 2px 14px rgba(255, 0, 0, 0.28);
}

.hero-content p {
    font-size: 1.1rem;
    color: #d4d4d8;
    margin-bottom: 24px;
    line-height: 1.5;
}

.watch-now-btn {
    background: linear-gradient(45deg, #ff0000, #ff1e1e);
    color: #09090b;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.watch-now-btn:hover {
    transform: scale(1.05);
}


/* Footer Section */
.site-footer {
    background: #111115;
    border-top: 1px solid #27272a;
    padding: 20px 40px 15px 40px;
    position: relative;
    margin-top: 50px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-left {
    flex: 1;
    min-width: 280px;
    max-width: 550px;
}

.footer-logo {
    height: 42px;
    width: auto;
    margin-bottom: 16px;
}

.footer-desc {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-section h3 {
    font-size: 1.1rem;
    color: #ff0000;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #18181b;
    border: 1px solid #3f3f46;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgb(255, 30, 30);
}

.footer-right {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
}

.footer-video-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #000000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff0000, #ff0000);
    border: none;
    color: #09090b;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    transition: all 0.3s ease;
    z-index: 5;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 25px rgb(255, 30, 30);
}

.play-btn.playing {
    opacity: 0;
}

.video-wrapper:hover .play-btn.playing {
    opacity: 1;
}

.video-info {
    margin-top: 8px;
    padding: 0 2px;
}

.video-info span {
    font-size: 0.75rem;
    color: #ff0000;
}

.video-info h4 {
    font-size: 0.8rem;
    color: #ffffff;
    margin-top: 2px;
    line-height: 1.3;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1f1f23;
    text-align: center;
    color: #71717a;
    font-size: 0.85rem;
}

/* Categories & Compact Grid Layout */
.categories-container {
    padding: 100px 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.categories-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    width: 100%;
}

.genre-grid .movie-list-item {
    margin: 0 !important;
    width: 100%;
    height: auto;
}

.movie-card-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #18181b;
}

.genre-grid .movie-list-item-img.grid-img {
    width: 100% !important;
    height: 230px !important;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.movie-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.movie-card-wrapper:hover .movie-card-overlay {
    opacity: 1;
}

.movie-card-wrapper:hover .grid-img {
    transform: scale(1.05);
}

.card-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.badge {
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 3px;
    color: #fff;
    text-transform: uppercase;
}

.badge.blue { background-color: #2563eb; }
.badge.purple { background-color: #7c3aed; }
.badge.dark { background-color: #3f3f46; }

.card-play-link {
    align-self: center;
    margin: auto 0;
    text-decoration: none;
}

.play-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.play-circle-btn:hover {
    transform: scale(1.1);
    background: #00f2fe;
    color: #000;
    border-color: #00f2fe;
}

/* Notice Bar - Fixed spacing below fixed navbar */
.notice-bar {
    position: relative;
    width: 100%;
    z-index: 5;
    border: 1px solid #d4a017;
    background-color: #0e0e0e;
    color: #ffffff;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: bold;
    margin-top: 100px; /* Navbar එක යටින් නිවැරදිව පෙන්වීමට ඉඩ සකසා ඇත */
    margin-bottom: 10px;
    clear: both;
}

.red-text{
    color: #ff0000;
    font-weight: bold;
}

.genre-grid .movie-list-item-title {
    position: static;
    background-color: transparent;
    padding: 0;
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    opacity: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.genre-grid .movie-list-item-desc {
    position: static;
    background-color: transparent;
    padding: 0;
    width: 100%;
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 2px;
    opacity: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    aspect-ratio: 16/9;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%);
    transition: background 0.3s ease;
}

.category-name {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #ff0000;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 2;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

.category-card:hover img {
    transform: scale(1.1);
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    gap: 15px;
}

.page-info {
    color: #a1a1aa;
    font-size: 0.95rem;
}

.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination a {
    color: #ffffff;
    text-decoration: none;
    background-color: #18181b;
    border: 1px solid #3f3f46;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #ff0000;
    color: #09090b;
    border-color: #ff0000;
}

/* ==============================================================
   SERIES DOWNLOAD PAGE STYLING
   ============================================================== */

.hero-series-container {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    padding: 100px 60px 50px 60px;
    background-color: #111111;
    overflow: hidden;
}

.hero-series-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-series-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(17, 17, 17, 0.4) 0%, 
        rgba(17, 17, 17, 0.8) 60%, 
        #111111 100%
    );
    z-index: 2;
}

.hero-series-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.series-poster-box {
    flex: 0 0 260px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.series-poster-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.series-details-box {
    flex: 1;
    color: #ffffff;
}

.series-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.series-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.netflix-red {
    background-color: #E50914;
    color: #ffffff;
}

.quality-badge {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.rating-badge {
    background-color: transparent;
    border: 1px solid #3f3f46;
    color: #a1a1aa;
}

.series-main-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.series-season-title {
    font-size: 1.2rem;
    color: #E50914;
    font-weight: 600;
    margin-bottom: 16px;
}

.series-short-desc {
    font-size: 1rem;
    color: #d4d4d8;
    line-height: 1.6;
    max-width: 750px;
    margin-bottom: 28px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.series-download-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.series-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.series-btn-red {
    background-color: #E50914;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.series-btn-red:hover {
    background-color: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.7);
    color: #ffffff;
}

.series-btn-red-outline {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #E50914;
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.series-btn-red-outline:hover {
    background-color: #E50914;
    color: #ffffff;
    transform: translateY(-2px);
}

.series-article-container {
    max-width: 1300px;
    margin: 40px auto 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.series-card-section {
    background-color: #18181c;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 30px;
}

.series-section-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #27272a;
    padding-bottom: 12px;
}

.red-icon {
    color: #E50914;
}

.series-article-text {
    color: #a1a1aa;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.series-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    background-color: #111115;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #27272a;
}

.meta-item {
    font-size: 0.9rem;
    color: #d4d4d8;
}

.meta-item strong {
    color: #E50914;
}

.series-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.cast-card {
    background-color: #111115;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.cast-card:hover {
    border-color: #E50914;
}

.cast-avatar {
    width: 50px;
    height: 50px;
    background-color: #27272a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    font-size: 1.2rem;
    color: #E50914;
}

.cast-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.cast-role {
    font-size: 0.8rem;
    color: #a1a1aa;
    margin-top: 4px;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.episode-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #111115;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #27272a;
    transition: background-color 0.2s ease;
}

.episode-row:hover {
    background-color: #1f1f25;
}

.ep-num {
    font-size: 1.2rem;
    font-weight: 900;
    color: #E50914;
    flex-shrink: 0;
}

.ep-details {
    flex: 1;
}

.ep-details h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.ep-details p {
    font-size: 0.85rem;
    color: #a1a1aa;
    line-height: 1.4;
}

.ep-download {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.ep-dl-link {
    background-color: #27272a;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ep-dl-link:hover {
    background-color: #E50914;
    color: #ffffff;
}

/* ==============================================================
   RESPONSIVE MEDIA QUERIES (Mobile, Tablet, Desktop Improvements)
   ============================================================== */

@media screen and (max-width: 992px) {
    .navbar {
        padding: 0 20px;
    }

    .hero-container {
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .categories-container {
        padding: 90px 20px 30px;
    }

    .footer-right {
        max-width: 100%;
    }

    .hero-series-container {
        padding: 90px 30px 40px 30px;
    }

    .series-main-title {
        font-size: 2.5rem;
    }

    .series-poster-box {
        flex: 0 0 200px;
    }

    .series-poster-img {
        height: 290px;
    }

    .series-article-container {
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #141418;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 20px;
        display: none;
        border-bottom: 1px solid #27272a;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

    .search-results-dropdown {
        width: 100%;
        left: 0;
    }

    .hero-container {
        padding: 0 20px;
        justify-content: center;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .genre-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .genre-grid .movie-list-item-img.grid-img {
        height: 190px !important;
    }

    .site-footer {
        padding: 40px 20px 20px 20px;
    }

    .arrow {
        display: none;
    }

    .hero-series-container {
        padding: 90px 20px 30px 20px;
        min-height: auto;
    }

    .hero-series-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .series-poster-box {
        flex: 0 0 auto;
        width: 180px;
    }

    .series-poster-img {
        height: 260px;
    }

    .series-badges {
        justify-content: center;
    }

    .series-main-title {
        font-size: 2rem;
    }

    .series-season-title {
        font-size: 1rem;
    }

    .series-short-desc {
        font-size: 0.9rem;
    }

    .series-download-actions {
        flex-direction: column;
        width: 100%;
    }

    .series-btn {
        width: 100%;
        justify-content: center;
    }

    .episode-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ep-download {
        width: 100%;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .movie-list-item {
        width: 220px;
        height: 160px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .watch-now-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ==========================================================
   THIS WEEK TOP 10 ROW - isolated styles
   ========================================================== */
.top10-section {
    padding: 28px 30px 18px;
    background: #0e0e11;
    overflow: hidden;
}
.top10-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.top10-header h2 {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: .6px;
}
.top10-header p {
    color: #a1a1aa;
    font-size: .82rem;
    margin-top: 5px;
}
.top10-controls { display: flex; gap: 9px; }
.top10-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid #45454d;
    border-radius: 50%;
    background: #1c1c22;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: background .25s, color .25s, opacity .25s;
}
.top10-arrow:hover { background: #E50914; color: #080808; border-color: #ff1838; }
.top10-row {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 5px 2px 20px;
}
.top10-row::-webkit-scrollbar { display: none; }
.top10-card {
    position: relative;
    flex: 0 0 205px;
    height: 270px;
    display: flex;
    align-items: center;
}
.top10-rank {
    position: absolute;
    z-index: 0;
    left: 0;
    bottom: -3px;
    font-size: 160px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -10px;
    color: #0e0e11;
    -webkit-text-stroke: 2px #777780;
    user-select: none;
    pointer-events: none;
}
.top10-poster {
    position: absolute;
    z-index: 1;
    left: 62px;
    top: 20px;
    width: 132px;
    height: 198px;
    border-radius: 7px;
    overflow: hidden;
    background: #1b1b20;
    box-shadow: 0 8px 18px rgba(0,0,0,.35);
    transition: transform .3s ease, box-shadow .3s ease;
}
.top10-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.top10-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.96), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
}
.top10-poster:hover {
    transform: scale(1.055);
    box-shadow: 0 10px 26px rgba(0,242,254,.15);
}
.top10-poster:hover img { transform: scale(1.07); }
.top10-poster:hover::after { opacity: 1; }
.top10-info {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 8px;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .25s, transform .25s;
}
.top10-poster:hover .top10-info { opacity: 1; transform: translateY(0); }
.top10-info h3 { font-size: 12px; line-height: 1.3; margin-bottom: 5px; }
.top10-info p { font-size: 10px; color: #d4d4d8; margin-bottom: 9px; }
.top10-info a {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 4px;
    color: #080808;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
}
.top10-arrow:disabled { cursor: default; }

@media (max-width: 600px) {
    .top10-section { padding: 24px 15px 12px; }
    .top10-header h2 { font-size: 1.15rem; }
    .top10-card { flex-basis: 170px; height: 235px; }
    .top10-rank { font-size: 140px; }
    .top10-poster { left: 51px; top: 18px; width: 110px; height: 165px; }
    .top10-arrow { width: 33px; height: 33px; }
}

/* =============================================================
   NEXCES CINEMATIC RED UI — inspired by the supplied reference
   ============================================================= */
body { background: #05070b; color: #f8fafc; }

.hero-container { height: min(690px, 82vh); min-height: 540px; padding: 115px 8% 50px; align-items: center; overflow: hidden; background: #070a10; }
.hero-overlay { background: linear-gradient(90deg, rgba(3,6,11,.94) 0%, rgba(3,6,11,.76) 34%, rgba(3,6,11,.22) 72%, rgba(3,6,11,.20) 100%), linear-gradient(0deg, #05070b 0%, rgba(5,7,11,.06) 40%, rgba(5,7,11,.18) 100%); }
.hero-content { max-width: 600px; padding-top: 12px; }
.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 15px; color: #f4f4f5; font-size: .8rem; font-weight: 800; letter-spacing: 1.4px; }
.hero-eyebrow-line { width: 36px; height: 3px; border-radius: 5px; background: #ff1838; box-shadow: 0 0 12px rgba(255,24,56,.4); }
.hero-content h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -1.8px; font-weight: 900; margin-bottom: 10px; color: #fff; text-shadow: 0 3px 18px rgba(0,0,0,.45); }
.hero-content h1 span { color: #ff1838; }
.hero-subtitle { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: #f1f5f9; font-weight: 700; margin-bottom: 12px; }
.hero-content p { max-width: 490px; color: #d4dbe5; font-size: 1rem; line-height: 1.55; margin-bottom: 24px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.watch-now-btn { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg,#ff1938,#e50924); color: white; border-radius: 28px; padding: 13px 25px; box-shadow: 0 8px 22px rgba(229,9,36,.22); }
.watch-now-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 28px rgba(229,9,36,.32); }
.hero-secondary-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; color: #f8fafc; border: 1px solid rgba(255,255,255,.3); border-radius: 28px; background: rgba(8,12,19,.46); backdrop-filter: blur(10px); cursor: pointer; font-weight: 650; transition: background .2s,border-color .2s; }
.hero-secondary-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.hero-dots { display: flex; align-items: center; gap: 9px; margin-top: 27px; }
.hero-dots span { width: 7px; height: 7px; border-radius: 10px; background: rgba(226,232,240,.5); }
.hero-dots span.active { width: 25px; background: #ff1838; }
.top10-section { background: #05070b; padding-top: 16px; }
.top10-header h2, .movie-list-title { letter-spacing: -.25px; }
.top10-header h2::before, .movie-list-title::before { content: ''; display: inline-block; width: 24px; height: 3px; margin: 0 13px 5px 0; border-radius: 3px; background: #ff1838; box-shadow: 0 0 10px rgba(255,24,56,.35); }

.movie-list-container { background: #05070b; border-top: 1px solid rgba(255,255,255,.04); }
.movie-list-title { display: flex; align-items: center; }
.site-footer { background: #07090e; border-top: 1px solid rgba(255,255,255,.09); }

@media (max-width: 992px) {
 .navbar { top: 10px; left: 3%; width: 94%; padding: 0 16px; height: 62px; }
 .nav-menu { gap: 12px; } .nav-links { gap: 0; } .nav-links a { padding-left: 9px; padding-right: 9px; }
 .nav-search input { width: 165px; } .nav-utility-icons { gap: 7px; }
 .hero-container { height: 78vh; min-height: 520px; padding: 110px 6% 40px; }
}

@media (max-width: 700px) {
 .navbar { top: 8px; left: 3%; width: 94%; height: 58px; padding: 0 13px; }
 .nav-logo #siteLogo { height: 34px; max-width: 140px; }
 .mobile-menu-toggle { display: block; order: 3; }
 .nav-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 16px; flex-direction: column; align-items: stretch; gap: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(5,8,13,.97); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
 .nav-menu.show { display: flex; } .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
 .nav-links a { padding: 12px 10px; border-radius: 8px; } .nav-links a.active::after { display: none; }
 .nav-search input { width: 100%; } .nav-search { width: 100%; } .nav-utility-icons { justify-content: flex-end; }
 .hero-container { min-height: 570px; height: 82vh; padding: 120px 24px 35px; align-items: center; }
 .hero-content { max-width: 100%; } .hero-content h1 { font-size: clamp(2.35rem, 10vw, 3.3rem); letter-spacing: -1px; }
 .hero-content p { font-size: .94rem; } .hero-subtitle { line-height: 1.35; }
 .hero-actions { gap: 10px; } .watch-now-btn, .hero-secondary-btn { padding: 12px 17px; font-size: .9rem; }
 .top10-section { padding-left: 12px; padding-right: 12px; }
}

/* Main Container - Updated with margin-top for spacing below fixed navbar */
.main-container {
    display: flex;
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
    margin: 100px auto 30px auto; /* Navbar eka yatin ida (space) thiyenna margin-top eka wadi kala */
}

.content-left {
    flex: 3;
}

/* Movie Card Wrapper */
.movie-card-wrapper {
    display: flex;
    gap: 25px;
    background-color: #181818;
    padding: 20px;
    border-radius: 8px;
}

.movie-poster img {
    width: 220px;
    height: 330px;
    border-radius: 6px;
    object-fit: cover;
}

.movie-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-score {
    background-color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.stars {
    color: #f5c518;
}

.votes {
    color: #aaa;
    font-size: 13px;
}

.tags {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge.web-dl { border: 1px solid #00e5ff; color: #00e5ff; }
.badge.lang { background-color: #b71c1c; color: #fff; }
.badge.imdb { background-color: #f5c518; color: #000; }
.badge.duration { background-color: #333; color: #fff; }

.genres-tag {
    color: #00e5ff;
    font-size: 15px;
    font-weight: bold;
}

.sinhala-title {
    color: #fff;
    font-size: 22px;
}

.description {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

.meta-details {
    font-size: 13px;
    color: #aaa;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-details strong {
    color: #fff;
}

/* Top Cast Section */
.top-cast-section {
    margin-top: 40px;
}

.top-cast-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.cast-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.cast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 90px;
}

.cast-item img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    margin-bottom: 8px;
}

.cast-item span {
    font-size: 12px;
    color: #ccc;
}

/* Sidebar */
.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    padding: 12px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.btn.facebook { background-color: #1877f2; }
.btn.whatsapp { background-color: #25d366; }
.btn.youtube { background-color: #ff0000; }
.email, .btn.telegram { background-color: #0088cc; } /* Fixed telegram style */

.advertisement-box h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 2px solid #e50914;
    display: inline-block;
    padding-bottom: 2px;
}

.ad-banner {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
}

.ad-content .ad-tag {
    font-size: 10px;
    color: #00e5ff;
    letter-spacing: 1px;
}

.ad-content h5 {
    color: #fff;
    font-size: 16px;
    margin: 10px 0;
}

.ad-content p {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 15px;
}

.ad-btn {
    background-color: #e50914;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.download-container {
    margin: 20px 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #E50914; /* Netflix Red */
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.7);
    color: #ffffff;
}

.download-btn i {
    font-size: 1.1rem;
}

.advertisement-box {
    margin: 30px 0;
    width: 100%;
}

.advertisement-box h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 12px;
    border-bottom: 2px solid #ff1e1e; /* Red accent line */
    display: inline-block;
    padding-bottom: 4px;
}

.ad-banner {
    width: 100%;
    min-height: 120px; /* Ad එක load වන තෙක් layout එක වෙනස් නොවීම සඳහා */
    background-color: #0d0f12;
    border: 1px solid #27272a;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow: hidden;
}


.my-banner {
    width: 100%;
    margin: 60px auto 30px auto;
    position: relative;
    z-index: 999;
    text-align: center;
}

.my-banner img {
       width: 60%;
       height: auto;
       max-height: 70px;
       object-fit: cover;
       border-radius: 8px;
       display: block;
       margin: 0 auto;
}

@media (max-width: 768px) {
    .my-banner img {
        width: 95%;
    }
}




 /* Profile Specific Styles */
        .profile-wrapper {
            max-width: 900px;
            margin: 110px auto 40px auto;
            padding: 0 20px;
        }

        .profile-card {
            background: rgba(24, 24, 28, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 35px;
            backdrop-filter: blur(16px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
        }

        .profile-header-flex {
            display: flex;
            align-items: center;
            gap: 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 25px;
            margin-bottom: 30px;
        }

        .avatar-container {
            position: relative;
            width: 110px;
            height: 110px;
            flex-shrink: 0;
        }

        .avatar-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #ff1e1e;
            box-shadow: 0 0 15px rgba(255, 30, 30, 0.4);
            background: #18181b;
        }

        .avatar-edit-icon {
            position: absolute;
            bottom: 2px;
            right: 2px;
            background: #ff1e1e;
            color: #fff;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.85rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.5);
            transition: transform 0.2s;
        }

        .avatar-edit-icon:hover {
            transform: scale(1.1);
        }

        .user-info-head h2 {
            font-size: 1.8rem;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 5px;
        }

        .user-info-head p {
            color: #a1a1aa;
            font-size: 0.95rem;
        }

        .profile-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group label {
            font-size: 0.85rem;
            color: #a1a1aa;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-group input {
            background: rgba(28, 28, 33, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #ffffff;
            padding: 12px 16px;
            border-radius: 10px;
            outline: none;
            font-size: 0.95rem;
            transition: border-color 0.25s;
        }

        .form-group input:focus {
            border-color: #ff1e1e;
        }

        .form-group input[readonly] {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .profile-actions {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .save-btn {
            background: linear-gradient(135deg, #ff1938, #e50924);
            color: #fff;
            border: none;
            padding: 12px 28px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .save-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(229, 9, 36, 0.4);
        }

        .logout-btn {
            background: rgba(255, 255, 255, 0.08);
            color: #ff4d4d;
            border: 1px solid rgba(255, 77, 77, 0.3);
            padding: 12px 28px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: background 0.2s, transform 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .logout-btn:hover {
            background: rgba(255, 77, 77, 0.15);
            transform: translateY(-2px);
        }

        /* Auth Modal Box */
        .auth-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            z-index: 3000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .auth-card {
            background: #18181c;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            width: 100%;
            max-width: 400px;
            padding: 30px;
            text-align: center;
        }

        .auth-card h3 {
            font-size: 1.5rem;
            color: #fff;
            margin-bottom: 20px;
        }

        .google-login-btn {
            width: 100%;
            background: #ffffff;
            color: #000000;
            border: none;
            padding: 12px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 15px;
            transition: background 0.2s;
        }

        .google-login-btn:hover {
            background: #e6e6e6;
        }

        .status-msg {
            margin-top: 15px;
            font-size: 0.85rem;
            color: #4ade80;
            display: none;
        }

        @media (max-width: 768px) {
            .profile-header-flex {
                flex-direction: column;
                text-align: center;
            }
        }



::-webkit-scrollbar {
       width: 10px;
}

::-webkit-scrollbar-track {
      background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
     background: #e50914;
     border-radius: 10px;
}

::-webkit-scrollbar-thumb: hover {
     background: #ff0a16;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #e50914 #1a1a1a;
}


/* Container & Header */
.movie-row-container {
  background-color: #141414;
  padding: 20px 0;
  color: #fff;
  font-family: Arial, sans-serif;
  width: 100%;
}

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin-bottom: 10px;
}

.row-header h2 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #e50914;
}

.view-all {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
}
.view-all:hover {
  color: #fff;
}

.row-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Horizontal Slider with Custom Scrollbar */
.movie-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  padding: 25px 50px;
  width: 100%;
  
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.movie-slider::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}


/* --- My Movie Card Style --- */
.my-movie-card {
  position: relative;
  min-width: 180px;
  height: 250px;
  background-color: #222;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 1;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Top Badges */
.top-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  z-index: 3;
}

.language-badge {
  background-color: rgba(0, 0, 0, 0.8);
  color: #ff9800;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: bold;
}

.quality-badge {
  background-color: #e50914;
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: bold;
}

.resolution-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: bold;
}

/* --- Card Hover Effect (Zoom & Play Button in Center) --- */
.my-movie-card:hover {
  transform: scale(1.35);
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

/* Hover Overlay */
.card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  padding: 10px;
  box-sizing: border-box;
}

.my-movie-card:hover .card-hover-overlay {
  opacity: 1;
}

/* Center Big Play Button */
.center-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.center-play-btn:hover {
  transform: scale(1.15);
  background-color: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: #fff;
  color: #fff;
}

/* Plus Button (Right Top inside hover) */
.add-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-btn:hover {
  background: #fff;
  color: #000;
}

/* Title at Bottom of Card */
.movie-title {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Square Side Navigation Handles (< >) */
.slider-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45px;
  background-color: rgba(20, 20, 20, 0.6);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  border-radius: 0;
}

.slider-btn:hover {
  background-color: rgba(20, 20, 20, 0.95);
}

.left-btn {
  left: 0;
}

.right-btn {
  right: 0;
}



/* Global Reset for Footer */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  background-color: #000;
  color: #737373;
}

/* Footer Wrapper */
.site-footer {
  background-color: #000000;
  padding: 50px 0 30px;
  border-top: 8px solid #222222;
  font-size: 13px;
  line-height: 1.5;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 45px;
}

/* Contact Link */
.footer-top {
  margin-bottom: 30px;
  color: #737373;
}

.footer-top a {
  color: #737373;
  text-decoration: underline;
}

.footer-top a:hover {
  color: #b3b3b3;
}

/* Grid Layout for Links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
  list-style: none;
  margin-bottom: 30px;
}

.footer-links li a {
  color: #737373;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: #b3b3b3;
}

/* Custom Styled Language Dropdown */
.language-selector {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.language-selector select {
  background-color: rgba(0, 0, 0, 0.75);
  color: #999999;
  border: 1px solid #333333;
  padding: 8px 26px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23999999" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.language-selector select:focus {
  outline: 1px solid #ffffff;
  color: #ffffff;
}

/* Footer Bottom Text */
.footer-country {
  color: #737373;
  font-size: 11px;
}

/* Responsive Design for Mobile & Tablet */
@media (max-width: 740px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    padding: 0 20px;
  }
}

@media (max-width: 500px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}



/* ==========================================================
   NOTIFICATION DROPDOWN STYLES
   ========================================================== */
.nav-notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #e50914;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0e0e11;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.notification-badge.hidden {
    display: none;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background-color: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 2000;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.mark-read-btn {
    background: transparent;
    border: none;
    color: #e50914;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mark-read-btn:hover {
    color: #ff333d;
    text-decoration: underline;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background-color: rgba(229, 9, 20, 0.08);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e50914;
}

.notification-img {
    width: 44px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.notification-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-message {
    font-size: 0.75rem;
    color: #a1a1aa;
    line-height: 1.3;
}

.notification-time {
    font-size: 0.7rem;
    color: #71717a;
}

.no-notifications {
    padding: 24px 16px;
    text-align: center;
    color: #a1a1aa;
    font-size: 0.85rem;
}



/* ==========================================================
   FOOTER PAGES COMMON STYLES
   ========================================================== */
.page-container {
    max-width: 900px;
    margin: 110px auto 50px auto;
    padding: 0 20px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    border-bottom: 3px solid #ff1e1e;
    display: inline-block;
    padding-bottom: 8px;
}

.content-card {
    background-color: #18181c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    color: #d4d4d8;
    line-height: 1.7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.content-card h2 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.faq-question {
    color: #ffffff;
    font-size: 1.1rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-answer {
    margin-left: 28px;
    margin-bottom: 20px;
    color: #a1a1aa;
}

.help-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.help-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form textarea {
    background: rgba(28, 28, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    outline: none;
    font-size: 0.95rem;
    resize: vertical;
}

.contact-form textarea:focus {
    border-color: #ff1e1e;
}




/* Intro එක යන අතරතුර Banner එක මුලින්ම Hide කර තැබීම */
.banner-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none; /* Intro එක යන අතරතුර Hide වී තිඛේ */
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease-in-out;
    width: 728px;
    max-width: 100%;
}

/* Intro එක ඉවර වුණාම Banner එක Show කිරීමට යොදාගන්නා Class එක */
.banner-container.show-banner {
    display: flex;
}

/* Toggle Arrow Button */
.toggle-btn {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 2px 14px;
    cursor: pointer;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-btn span {
    font-size: 12px;
    color: #333;
    transition: transform 0.3s ease;
}

/* Banner Link Wrapper */
.banner-link {
    display: block;
    width: 100%;
    height: 90px;
    text-decoration: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    background-color: #f1f1f1;
}

/* Banner Image */
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hidden State class (translates down standard height) */
.banner-container.collapsed {
    transform: translate(-50%, 90px);
}

/* Rotated Arrow Icon when collapsed */
.banner-container.collapsed .toggle-btn span {
    transform: rotate(180deg);
}




