/* Base Styles */
.hero-swiper {
    display: none;
    width: 100%;
    padding: 10px 0 30px;
    overflow: hidden;
    position: relative;
}

.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    background: #666;
    opacity: 1;
    width: 12px;
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s;
    margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
    width: 20px;
}

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

:root {
    --bg-primary: #040404;
    --bg-secondary: #1a1a1a;
    --bg-card: #181818;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-color: #ff0045;
    --accent-hover: #f40065;
    --accent-gradient: linear-gradient(270deg, #ff871f, #ff0045 48%, #f40065);
    --border-color: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SN Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.container.navbar-inner {
    max-width: 1330px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-inner {
    display: flex;
    align-items: center;
    height: 65px;
    gap: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.navbar-brand:hover {
    color: var(--text-primary);
}

.navbar-brand-icon {
    width: 26px;
    height: 26px;
    background: var(--accent-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.navbar-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.navbar-menu a:hover {
    color: var(--accent-hover);
}

.navbar-menu a.active {
    color: var(--accent-color);
}

.lang-dropdown {
    position: relative;
    cursor: pointer;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 0;
    min-width: 160px;
    display: none;
    z-index: 100;
}

.lang-dropdown:hover .lang-dropdown-menu {
    display: block;
}

.lang-dropdown-menu a {
    display: block;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lang-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.lang-dropdown-menu a.active {
    color: var(--accent-color);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 10px 14px;
    gap: 6px;
    min-width: 160px;
}

.search-box i {
    color: var(--text-muted);
    font-size: 14px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.navbar-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}

/* Mobile Navbar */
.mobile-navbar {
    display: none;
}

.mobile-nav-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
}

.mobile-nav-logo {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-nav-logo i {
    color: white;
    font-size: 14px;
}

.mobile-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 4px 6px;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.mobile-search i {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.mobile-search input::placeholder {
    color: var(--text-muted);
}

.mobile-search-source {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.7rem;
    padding: 8px 4px;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    width: 100px;
}

.text-center {
    text-align: center;
}

.mobile-search-source option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.mobile-nav-icons {
    display: none;
    gap: 8px;
}

.mobile-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.mobile-nav-tabs {
    display: none;
    /*display: flex;*/
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-tabs-left {
    display: flex;
    gap: 20px;
    flex: 1;
}

.mobile-tab {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.mobile-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.mobile-lang-picker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.mobile-lang-picker i.fa-globe {
    font-size: 16px;
}

.mobile-lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    display: none;
    z-index: 1000;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.mobile-lang-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.mobile-lang-dropdown.show {
    display: block;
}

.mobile-lang-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 17px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--accent-color);
    background: transparent;
    transform: none;
    z-index: 1001;
}

.mobile-lang-picker:hover .mobile-lang-dropdown.show {
    display: block;
}

.mobile-lang-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mobile-lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-lang-dropdown a.active {
    color: var(--accent-color);
}

.main-content {
    padding-top: 70px;
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 16px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-big {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
}

.hero-big-image {
    width: 280px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.hero-big-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-big-content {
    flex: 1;
    padding: 1rem;
}

.hero-big-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hero-big-episodes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hero-big-description {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.hero-big-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.hero-small-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-small {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
}

.hero-small:hover .hero-small-title {
    color: var(--accent-hover);
}

.hero-small-image {
    width: 135px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.hero-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-small-content {
    flex: 1;
    padding: 1rem;
}

.hero-small-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.hero-small-episodes {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.hero-small-description {
    font-size: 0.8rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    max-width: 150px;
}

.hero-small-tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-primary);
}

/* Section */
.section {
    padding: 20px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-more {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover {
    color: var(--accent-hover);
}

/* Browse Header */
.browse-header {
    padding: 16px 0 10px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.category-tab {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--accent-color);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.pagination-btn.active {
    background: var(--accent-color);
    color: white;
}

/* Drama Grid */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.drama-card {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.drama-card-image-wrapper,
.drama-card-image {
    height: 240px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.drama-card-image-wrapper img,
.drama-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.drama-card:hover .drama-card-image-wrapper img,
.drama-card:hover .drama-card-image img {
    transform: scale(1.03);
}

.drama-card-badge {
    position: absolute;
    top: 212px;
    left: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.drama-card-badge i {
    font-size: 8px;
}

.drama-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.2s;
    height: 40px;
}

.drama-card:hover .drama-card-title {
    color: var(--accent-color);
}

.drama-card-hover-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    padding: 3px 8px;
    background: var(--bg-card);
    border-radius: 4px;
    font-size: 0.7rem;
    transition: opacity 0.2s;
}

.drama-card:hover .drama-card-hover-tag {
    opacity: 1;
}

/* Film Page */
.film-header {
    display: flex;
    gap: 24px;
    background: var(--bg-card);
}

.film-cover {
    width: 260px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

.film-info {
    flex: 1;
    padding: 1rem 0;
}

.film-info h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.film-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.film-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.film-tag {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.film-description {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 54px;
    background: var(--accent-gradient);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.play-btn:hover {
    opacity: 0.9;
    color: var(--text-primary);
}

/* Episode List for Film Page */
.episode-section {
    padding: 24px 0;
}

.episode-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.episode-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.episode-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.episode-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.episode-list-item {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 0 6px 0 0;
    cursor: pointer;
    transition: background 0.2s;
}

.episode-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.episode-list-item.active {
    outline: 2px solid var(--accent-color);
}

.episode-list-thumb {
    width: 60px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.episode-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.episode-list-title {
    font-size: 0.7rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.episode-list-number {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.episode-see-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--accent-color);
    min-height: 80px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px dashed var(--border-color);
}

.episode-see-more:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* VIDEO PLAYER PAGE */
.video-eps {
    padding-top: 10px;
    padding-bottom: 30px;
}

.items-start {
    width: 100%;
    display: flex;
    gap: 1rem;
}

.video-player-main {
    flex-grow: 1;
    min-width: 0;
}

.video-player-placeholder {
    width: 100%;
    max-height: 80vh;
    background: var(--bg-card);
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

#light-mode {
    z-index: 2;
}

.player-options {
    padding: 0.5rem 1rem;
    display: flex;
    background: var(--bg-card);
    border-radius: 5px;
}

.player-options ul {
    display: flex;
    justify-content: space-between;
    width: 100%;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.player-options li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-options label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.player-options a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-options a:hover {
    color: var(--accent-color);
}

.player-options a.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.player-options a.active {
    color: var(--accent-color);
}

.player-options input[type="checkbox"] {
    width: 13px;
    height: 13px;
    accent-color: var(--accent-color);
}

.vid-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 12px 0;
}

.genre-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-right: 6px;
}

.video-info-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 12px;
}

/* Genre + Share Row */
.genre-share-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    text-decoration: none;
    /* Ensure no underline */
}

/* Fix for film-share container */
.film-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.film-share span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.share-icon:nth-child(2) {
    background: #1877f2;
    color: white;
}

.share-icon:nth-child(3) {
    background: #000;
    color: white;
}

.share-icon:nth-child(4) {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.share-icon:nth-child(5) {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.share-icon:hover {
    transform: scale(1.1);
}

/* Episode Sidebar */
.episode-sidebar-wrapper {
    flex-basis: 250px;
    flex-shrink: 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.episode-sidebar {
    background: var(--bg-card);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.sidebar-header {
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2a2a2a;
}

.sidebar-header span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-tabs {
    display: flex;
    gap: 0;
    padding: 0 10px;
    border-bottom: 1px solid var(--border-color);
    list-style: none;
}

.nav-tabs .nav-link {
    display: block;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
}

.nav-tabs .nav-link.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.row-sidebar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.sidebar-ep {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7.5px 7.5px;
    background: #2a2a2a;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-ep:hover {
    background: var(--accent-color);
    color: var(--text-primary);
}

.sidebar-ep.active {
    background: var(--accent-color);
    color: var(--text-primary);
}

/* Drama Terkait */
.drama-terkait-section {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.drama-terkait-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.drama-terkait-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-card);
    border-radius: 6px;
    padding: 8px;
    transition: all 0.2s;
}

.drama-terkait-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.drama-terkait-item.active {
    outline: 2px solid var(--accent-color);
}

.drama-terkait-thumb {
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
}

.drama-terkait-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drama-terkait-title {
    font-size: 0.75rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.drama-terkait-ep {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 10px 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb i {
    font-size: 10px;
    color: var(--text-muted);
}

.breadcrumb .current {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Recommendations on Episode Page */
.episode-recommends {
    padding: 30px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 32px 0 16px;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.synopsis {
    display: none;
}

.play-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
}

.play-item i {
    color: var(--accent-color);
}

/* Mobile Trigger Row */
.mobile-episode-trigger {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    background: #000;
    border: 1px solid #222;
    border-left: none;
    border-right: none;
    cursor: pointer;
}

.mobile-episode-trigger h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    color: #fff;
}

.mobile-episode-trigger span {
    font-size: 0.9rem;
    color: #999;
}

/* Share Row */
.mobile-share-row {
    display: none;
    align-items: center;
    padding: 12px 0;
    background: #000;
    border-bottom: 1px solid #222;
    gap: 12px;
}

.share-label {
    color: #fff;
    font-size: 0.9rem;
}

.share-icons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.share-btn.fb {
    background: #1877F2;
}

.share-btn.x {
    background: #000;
    border: 1px solid #333;
}

.share-btn.ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.share-btn.link {
    background: #3b82f6;
}

/* Modal Styling */
.mobile-episode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: flex-end;
}

.mobile-episode-modal.show {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    width: 100%;
    height: 70VH;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-tabs {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    overflow-x: auto;
    border-bottom: 1px solid #333;
}

.modal-tab-item {
    color: #999;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    padding-bottom: 4px;
}

.modal-tab-item.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    font-weight: bold;
}

.modal-grids {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.modal-grid-page {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.modal-grid-page.active {
    display: grid;
}

.modal-grid-item {
    aspect-ratio: 1;
    background: #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    border: 1px solid transparent;
}

.modal-grid-item:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.ep-num {
    font-size: 1rem;
    font-weight: 500;
}

/* Mobile Specific Display */
@media (max-width: 768px) {

    .mobile-episode-trigger {
        display: flex;
    }

    .mobile-share-row {
        display: flex;
    }

    .episode-section {
        display: none;
    }

    .main-content {
        padding-bottom: unset;
    }

    .drama-card-title {
        font-size: 0.65rem;
    }

    .video-player-placeholder {
        max-height: 70vh;
    }
}


/* Responsive */
@media (max-width: 1024px) {

    .drama-grid,
    .drama-terkait-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .episode-sidebar-wrapper {
        flex-basis: 220px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .mobile-navbar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(10px);
    }

    .main-content {
        padding-top: 50px;
    }

    .hero-grid {
        display: none;
    }

    .hero-swiper {
        display: block;
    }

    .hero-big {
        display: flex !important;
        flex-direction: row;
        align-items: flex-start;
        padding: 0;
        background: var(--bg-card);
    }

    .hero-big-image {
        width: 130px;
        max-width: none;
        aspect-ratio: 3/4;
    }

    .hero-big-content {
        padding: 7px 7px 0 0;
    }

    .hero-big-title {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .hero-big-episodes {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .hero-big-description {
        font-size: 0.75rem;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hero-small-wrapper {
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
    }

    .hero-small {
        min-width: 280px;
    }

    .drama-grid,
    .drama-terkait-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .drama-card {
        height: auto;
    }

    .film-header {
        flex-direction: column;
        align-items: center;
        background: unset;
        /*margin-top: -50px;*/
    }

    .film-cover {
        width: 150px;
        margin-top: 2rem;
        border-radius: 10px;
    }

    .film-info {
        text-align: center;
        display: grid;
    }

    .film-description {
        order: 2;
        text-align: left;
    }

    .synopsis {
        display: grid;
        order: 1;
        font-size: 1rem !important;
        text-align: left;
        font-weight: bold;
        color: var(--text-primary) !important;
        margin-top: 1rem;
    }

    .pemeran {
        font-size: 1rem !important;
        text-align: left;
        font-weight: bold;
        color: var(--text-primary) !important;
    }

    .play-btn {
        display: unset;
    }

    .film-meta,
    .film-tags {
        justify-content: center;
    }

    .items-start {
        flex-direction: column;
    }

    .episode-sidebar-wrapper {
        flex-basis: auto;
        max-height: 400px;
        width: 100%;
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .breadcrumb {
        padding: 1rem;
        background: var(--bg-card);
        /*margin-top: -50px;*/
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .drama-grid,
    .drama-terkait-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .drama-card-image-wrapper,
    .drama-card-image {
        height: auto;
    }

    .row-sidebar {
        grid-template-columns: repeat(4, 1fr);
    }

    .drama-card-badge,
    .drama-card-hover-tag {
        display: none;
    }

    .category-tabs {
        gap: 6px;
    }

    .category-tab {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Default visibility (Mobile First) */
.mobile-inline-grid-section,
.mobile-footer,
.mobile-episode-modal,
.mobile-divider {
    display: none;
}

/* Shared Sections (Visible on all) */
.video-info-section,
.share-row-section,
.content-divider {
    display: block;
}

/* Video Info Styling */
.video-info-section {
    padding: 16px;
    color: #fff;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-stats {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-stats i {
    color: gold;
    font-size: 0.8rem;
}

.video-synopsis-container {
    position: relative;
    margin-bottom: 16px;
}

.synopsis-text {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Limit to 3 lines initially */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.synopsis-text.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.toggle-synopsis {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(to right, transparent, #000 20%);
    padding-left: 20px;
    color: #fff;
    cursor: pointer;
    display: block;
    float: right;
    margin-top: -1.2em;
    position: static;
    margin-top: 4px;
    text-align: right;
    width: 100%;
}

.toggle-synopsis {
    float: right;
    margin-top: 5px;
    color: #fff;
}

.video-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 12px;
    clear: both;
    /* Clear floats */
    padding-top: 8px;
}

.meta-row {
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.meta-label {
    color: #888;
    margin-right: 4px;
}

.meta-badge {
    background: #222;
    padding: 2px 8px;
    border-radius: 12px;
    color: #ddd;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Content Divider */
.content-divider {
    height: 1px;
    background: #222;
    margin: 0 16px;
}

.mobile-divider {
    height: 1px;
    background: #222;
    margin: 0 16px;
}

/* Share Row */
.share-row-section {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    color: #fff;
    font-size: 0.9rem;
    margin-right: 4px;
}

.share-icons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.share-btn.fb {
    background: #1877F2;
}

.share-btn.x {
    background: #000;
    border: 1px solid #333;
}

.share-btn.ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.share-btn.link {
    background: #3b82f6;
}

/* Inline Grid (Mobile Only) */
.mobile-inline-grid-section {
    padding: 16px;
    display: none;
    /* Hidden by default, shown in media query */
}

.mobile-inline-grid-section .section-header {
    margin-bottom: 12px;
}

.mobile-inline-grid-section h3 {
    font-size: 1rem;
    color: #fff;
    margin: 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.preview-grid-item {
    aspect-ratio: 1;
    background: #1a1a1a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #333;
}

.preview-grid-item.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.preview-grid-item.more-btn {
    background: #222;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Mobile Footer */
.mobile-footer {
    position: fixed;
    bottom: 0;
    margin: .5rem 0;
    padding: 1rem;
    left: 2.5%;
    width: 95%;
    height: 60px;
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    display: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-footer .active {
    color: var(--accent-color);
}

.mobile-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
}

.mobile-footer-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.play-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
}

.play-item i {
    color: var(--accent-color);
}

/* Mobile Modal */
.mobile-episode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: flex-end;
    display: none;
}

.mobile-episode-modal.show {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    width: 100%;
    height: 70VH;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-tabs {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    overflow-x: auto;
    border-bottom: 1px solid #333;
}

.modal-tab-item {
    color: #999;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    padding-bottom: 4px;
}

.modal-tab-item.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    font-weight: bold;
}

.modal-grids {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.modal-grid-page {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.modal-grid-page.active {
    display: grid;
}

.modal-grid-item {
    aspect-ratio: 1;
    background: #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    border: 1px solid transparent;
}

.modal-grid-item:hover,
.modal-grid-item.active-modal-ep {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.ep-num {
    font-size: 1rem;
    font-weight: 500;
}

/* MEDIA QUERIES */

/* Desktop Adjustments */
@media (min-width: 769px) {
    .video-info-section {
        padding: 24px 0;
    }

    .share-row-section {
        padding: 16px 0;
    }

    .content-divider {
        margin: 0;
    }

    /* Hide mobile-specific */
    .mobile-inline-grid-section,
    .mobile-footer,
    .mobile-divider {
        display: none !important;
    }

    /* Show desktop sidebar */
    .episode-sidebar-wrapper {
        display: block;
    }

    .breadcrumb {
        display: block;
    }

    /* Assume breadcrumb is flex or block */
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    /* Hide Desktop Elements */
    .episode-sidebar-wrapper,
    .genre-share-row,
    .episode-section {
        display: none !important;
    }

    .container.video-eps {
        padding: 0;
        max-width: 100%;
    }

    .video-player-main {
        width: 100%;
        margin: 0;
    }

    .mobile-hidden-recs {
        padding: 0 16px;
        margin-bottom: 80px;
    }

    /* Show Mobile Elements */
    .mobile-inline-grid-section,
    .mobile-divider {
        display: block;
    }

    .mobile-footer {
        display: flex;
    }

    .player-options ul,
    .player-options li {
        gap: 1px;
    }

    .player-options label,
    .player-options a {
        font-size: 0.75rem;
    }

    .category-tabs {
        flex-wrap: unset;
        overflow-x: auto;
        white-space: nowrap;
        margin-top: 1rem;
    }
}

/* Cinema Mode Overlay */
.cinema-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1;
    /* Below navbar (1000) but above content */
    display: none;
    pointer-events: none;
    /* Let clicks pass through if needed, but usually block */
    pointer-events: auto;
}

body.cinema-active .cinema-overlay {
    display: block;
}

/* Elevate video player above overlay */
body.cinema-active .video-player-wrapper {
    position: relative;
    z-index: 999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Ensure navbar stays on top */
.navbar {
    z-index: 1000;
}

/* Search Source Dropdown */
.search-source-selector {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.search-source-dropdown {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 4px 8px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.search-source-dropdown:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.search-source-dropdown option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.search-box {
    position: relative;
    padding-left: 100px;
}

.search-box i {
    left: auto;
    right: 15px;
    color: #fff;
}

.search-box input {
    padding-left: 10px;
}

/* ============================================
   NETSHORT SPECIFIC STYLES
   ============================================ */

/* Netshort Hero Section */
.netshort-hero {
    padding: 20px 0;
}

.netshort-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    min-height: 380px;
}

/* Main Hero Card - Image + Content Side by Side */
.netshort-hero-main-wrapper {
    display: flex;
    background: var(--bg-card);
    /*border-radius: 12px;*/
    overflow: hidden;
}

.netshort-hero-main {
    flex-shrink: 0;
    width: 280px;
}

.netshort-hero-main-image {
    width: 100%;
    height: 100%;
}

.netshort-hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.netshort-hero-main-content {
    flex: 1;
    padding: 20px;
    /*display: flex;*/
    flex-direction: column;
}

.netshort-hero-main-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.netshort-hero-episodes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.netshort-hero-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 12px;
}

.netshort-hero-labels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.netshort-hero-label {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* Side Cards */
.netshort-hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.netshort-side-card {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    /*border-radius: 8px;*/
    overflow: hidden;
    flex: 1;
    transition: transform 0.2s;
}

.netshort-side-card:hover {
    transform: translateY(-2px);
}

.netshort-side-card-image {
    width: 110px;
    flex-shrink: 0;
}

.netshort-side-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.netshort-side-card-info {
    flex: 1;
    padding: 12px 12px 12px 0;
    /*display: flex;*/
    flex-direction: column;
}

.netshort-side-card-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netshort-side-episodes {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.netshort-side-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 8px;
}

.netshort-side-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-primary);
    width: fit-content;
    margin-top: auto;
}

/* Netshort Sections */
.netshort-section {
    padding: 20px 0;
}

.section-marker {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Drama Card Tags */
.drama-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.drama-card-tags span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Drama Card Exclusive Badge */
.drama-card-exclusive {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: var(--accent-color);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    z-index: 5;
}

/* Pagination Ellipsis */
.pagination-ellipsis {
    padding: 0 8px;
    color: var(--text-secondary);
}

/* Netshort Pagination */
.netshort-pagination {
    margin-top: 20px;
    padding-bottom: 40px;
}

/* Search Box Refined */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    min-width: 300px;
}

.search-source-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 10px 3px;
    cursor: pointer;
    outline: none;
}

.search-source-dropdown option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 10px 12px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--accent-hover);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .netshort-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .netshort-hero-main {
        height: 300px;
    }

    .netshort-hero-side {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }

    .netshort-side-card {
        min-width: 200px;
        flex-direction: column;
    }

    .netshort-side-card img {
        width: 100%;
        height: 120px;
    }

    .drama-grid.netshort-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Caption Toggle Styles */
.caption-toggle-wrapper {
    position: relative;
}

#caption-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

#caption-toggle.caption-active {
    color: var(--accent-color);
}

#caption-toggle i {
    font-size: 14px;
}

.caption-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 140px;
    display: none;
    z-index: 100;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.caption-dropdown.show {
    display: block;
}

.caption-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.caption-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.caption-option.active {
    color: var(--accent-color);
    background: rgba(255, 0, 69, 0.1);
}

.caption-option:first-child {
    border-radius: 7px 7px 0 0;
}

.caption-option:last-child {
    border-radius: 0 0 7px 7px;
}

/* Video Subtitle Styling */
video::cue {
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 4px;
}

/* ============================================
   SKELETON LOADING & LAZY IMAGE STYLES
   ============================================ */

/* Skeleton Base */
.skeleton {
    position: relative;
    background: linear-gradient(90deg, var(--bg-card) 0%, #2a2a2a 50%, var(--bg-card) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Image */
.skeleton-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-card) 0%, #2a2a2a 50%, var(--bg-card) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Lazy Image Wrapper */
.img-lazy-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-lazy-wrapper .skeleton-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.img-lazy-wrapper.loaded .skeleton-img {
    opacity: 0;
    pointer-events: none;
}

.img-lazy-wrapper img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-lazy-wrapper.loaded img {
    opacity: 1;
}

/* Skeleton Card Variant */
.drama-card .skeleton-img,
.hero-big-image .skeleton-img,
.hero-small-image .skeleton-img,
.episode-list-thumb .skeleton-img,
.film-cover .skeleton-img {
    position: absolute;
    inset: 0;
}

/* Skeleton Text Lines */
.skeleton-text {
    height: 1em;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.full {
    width: 100%;
}

/* Skeleton Card */
.skeleton-card {
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
}

.skeleton-card .skeleton-img {
    aspect-ratio: 3/4;
}

.skeleton-card .skeleton-content {
    padding: 12px;
}

/* Prevent layout shift */
.drama-card-image,
.hero-big-image,
.hero-small-image,
.episode-list-thumb,
.film-cover {
    position: relative;
    overflow: hidden;
}
.floating-ad {
    position: fixed;
    top: 65px;
    z-index: 9999;
    display: none;
    /* Default hidden */
}

.floating-ad-left {
    right: 50%;
    margin-right: 540px;
    /* 1100px / 2 + 10px gap */
}

.floating-ad-right {
    left: 50%;
    margin-left: 540px;
    /* 1100px / 2 + 10px gap */
}

.close-ad-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: #ff0045;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-ad-btn.right {
    left: 5px;
}

.close-ad-btn:hover {
    background: #d6003a;
}

@media (min-width: 1000px) {
    .floating-ad {
        display: block;
    }
}
.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 9999;
    cursor: pointer;
}
/* PWA Prompt */
.pwa-prompt {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.pwa-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.pwa-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pwa-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pwa-info {
    flex: 1;
}

.pwa-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.pwa-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pwa-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-btn-install {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pwa-btn-install:hover {
    background: var(--accent-gradient);
}

.pwa-btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

.pwa-btn-close:hover {
    color: var(--text-primary);
}

/* PWA Prompt Bottom Fix */
.pwa-prompt {
    top: auto !important;
    bottom: 10px !important;
    animation: slideUpPrompt 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpPrompt {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Mobile Specific Fixes */
@media (max-width: 768px) {
    .pwa-prompt {
        bottom: 90px !important; 
        top: auto !important;
    }
}
