* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #fff;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 15px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: #0a0a0a;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #00d97e;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.logo span {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff0080;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-bar:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255, 255, 255, 0.1);
}

.search-bar:focus-within {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 2px rgba(255, 0, 128, 0.3);
    border-color: rgba(255, 0, 128, 0.5);
}

.search-bar svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.6);
}

.search-bar input {
    background: none;
    border: none;
    color: #fff;
    outline: none;
    width: 200px;
    margin-left: 10px;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Desktop Search Results */
.desktop-search-results {
    position: fixed;
    top: 70px;
    right: 220px;
    width: 450px;
    max-height: 600px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.desktop-search-results::-webkit-scrollbar {
    width: 8px;
}

.desktop-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.desktop-search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.desktop-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.desktop-search-results.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 0, 128, 0.1);
}

.search-result-img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.search-result-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.search-tag {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    color: #ccc;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.no-results p {
    margin: 0;
    font-size: 14px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 700px;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 50px;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
}

.hero-content {
    max-width: 600px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge.original {
    background: linear-gradient(135deg, #ff0080, #ff4d94);
}

.badge.top {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #ccc;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
    max-width: 500px;
}

.hero-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 25px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hero-tags::-webkit-scrollbar {
    display: none;
}

.hero-tags .tag {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1a8c, #ff9a1a);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 50px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: linear-gradient(135deg, #ff0080, #ff8c00);
}

/* Content Section */
.content-section {
    padding: 20px 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
}

.view-all {
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

.view-all svg {
    width: 16px;
    height: 16px;
    stroke: #ff0080;
}

/* Drama Grid */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.drama-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.drama-card:hover {
    transform: translateY(-10px);
}

.drama-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.drama-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.drama-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.drama-card:hover .drama-overlay {
    opacity: 1;
}

.drama-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.drama-badge {
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.drama-badge.top {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.drama-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.drama-card a {
    text-decoration: none;
    color: inherit;
}

.drama-meta {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 8px;
}

.drama-desc {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.5);
}

.drama-card:hover .play-icon {
    opacity: 1;
}

.play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

/* Rating */
.drama-bookmark {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.drama-bookmark:hover {
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    border-color: #ff0080;
    transform: scale(1.1);
}

.drama-bookmark svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
}

.drama-bookmark:hover svg {
    stroke: #fff;
    fill: #fff;
}

/* Category Section */


.category-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #ff0080, #ff8c00);
    border-radius: 2px;
}

.drama-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #ff0080 #1a1a1a;
}

.drama-scroll::-webkit-scrollbar {
    height: 8px;
}

.drama-scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.drama-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ff0080, #ff8c00);
    border-radius: 4px;
}

.drama-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #ff1a8c, #ff9a1a);
}

.drama-card-scroll {
    min-width: 200px;
    max-width: 200px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.drama-card-scroll:hover {
    transform: scale(1.05);
}

/* Mobile Bottom Navigation - Hidden on Desktop */
.mobile-bottom-nav {
    display: none;
}

.mobile-search-overlay {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }

    .navbar {
        padding: 12px 16px;

    }

    .navbar.scrolled {
        background: rgba(0,0,0,0.95);
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .logo span {
        font-size: 20px;
    }

    .nav-links {
        gap: 0;
        margin-left: auto;
    }

    .nav-links a {
        display: none;
    }

    .search-bar {
        background: rgba(255,255,255,0.1);
        padding: 8px 12px;
        border-radius: 20px;
        width: auto;
        cursor: pointer;
        transition: all 0.3s;
    }

    .search-bar:active {
        background: rgba(255,255,255,0.2);
        transform: scale(0.95);
    }

    .search-bar input {
        display: none;
    }

    .search-bar i {
        margin: 0;
        width: 20px;
        height: 20px;
    }

    /* Hero Section Mobile */
    .hero-section {
        height: 70vh;
        margin-top: 0px;
    }

    .hero-slide img {
        object-position: center 20%;
    }

    .hero-overlay {
        padding: 30px 16px 20px;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-badges {
        gap: 6px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }

    .badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .hero-meta {
        gap: 12px;
        margin-bottom: 10px;
        font-size: 12px;
    }

    .hero-meta svg {
        width: 14px;
        height: 14px;
    }

    .hero-desc {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-tags {
        gap: 6px;
        margin-bottom: 15px;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hero-tags::-webkit-scrollbar {
        display: none;
    }

    .tag {
        font-size: 11px;
        padding: 4px 10px;
        white-space: nowrap;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 24px;
    }

    .btn svg {
        width: 18px;
        height: 18px;
    }

    .btn-secondary {
        padding: 10px 16px;
    }

    .slider-nav {
        bottom: 15px;
        gap: 6px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }

    .slider-dot.active {
        width: 20px;
    }

    /* Content Section Mobile */
    .content-section {
        padding: 25px 16px;
    }

    .section-header {
        margin-bottom: 15px;
        padding: 0;
    }

    .section-title,
    .category-title {
        font-size: 18px;
    }

    .view-all {
        font-size: 13px;
    }

    .view-all svg {
        width: 14px;
        height: 14px;
    }

    /* Drama Grid Mobile */
    .drama-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .drama-card {
        border-radius: 8px;
    }

    .drama-poster {
        border-radius: 8px;
    }

    .drama-badges {
        top: 6px;
        left: 6px;
    }

    .drama-badge {
        font-size: 9px;
        padding: 3px 8px;
        border-radius: 4px;
    }

    .drama-bookmark {
        top: 6px;
        right: 6px;
    }

    .drama-bookmark svg {
        width: 14px;
        height: 14px;
    }

    .play-icon {
        width: 40px;
        height: 40px;
    }

    .play-icon::before {
        border-width: 8px 0 8px 14px;
    }

    .drama-overlay {
        padding: 10px;
    }

    .drama-title {
        font-size: 13px;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .drama-meta {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .drama-desc {
        display: none; /* Hide description on mobile for cleaner look */
    }

    /* Drama Scroll Mobile */
    .drama-scroll {
        gap: 10px;
        padding-bottom: 10px;
    }

    .drama-card-scroll {
        min-width: 130px;
        max-width: 130px;
    }

    .drama-scroll::-webkit-scrollbar {
        height: 4px;
    }

    /* Category Section Mobile */
    .category-section {
        padding: 20px 16px;
    }

    .category-section .section-header {
        margin-bottom: 12px;
    }

    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.98);
        backdrop-filter: blur(20px);
        padding: 8px 0 max(8px, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        font-size: 11px;
        transition: all 0.3s;
        padding: 4px 12px;
        border-radius: 12px;
    }

    .mobile-nav-item.active {
        color: #ff0080;
    }

    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
        stroke-width: 2;
    }

    .mobile-nav-item.active svg {
        stroke-width: 2.5;
    }

    /* Pull to Refresh Indicator */
    .pull-to-refresh {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.6);
        transform: translateY(-100%);
        transition: transform 0.3s;
    }

    .pull-to-refresh.active {
        transform: translateY(0);
    }

    /* Mobile Header Search */
    .mobile-search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        z-index: 2000;
        display: none;
        padding: 16px;
    }

    .mobile-search-overlay.active {
        display: flex;
        flex-direction: column;
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .mobile-search-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .mobile-search-input {
        flex: 1;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 12px 20px;
        color: #fff;
        font-size: 15px;
        outline: none;
        transition: all 0.3s;
    }

    .mobile-search-input:focus {
        background: rgba(255,255,255,0.15);
        border-color: rgba(255, 0, 128, 0.5);
    }

    .mobile-search-close {
        color: #fff;
        font-size: 15px;
        cursor: pointer;
        padding: 8px;
        white-space: nowrap;
    }

    .mobile-search-results {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }

    .mobile-search-results::-webkit-scrollbar {
        width: 6px;
    }

    .mobile-search-results::-webkit-scrollbar-track {
        background: transparent;
    }

    .mobile-search-results::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    .mobile-search-results .search-result-item {
        display: flex;
        gap: 12px;
        padding: 10px;
        text-decoration: none;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        margin-bottom: 6px;
        border-radius: 12px;
        transition: all 0.3s;
    }

    .mobile-search-results .search-result-item:hover {
        background: rgba(255, 0, 128, 0.1);
        transform: translateX(5px);
    }

    .mobile-search-results .search-result-img {
        width: 60px;
        height: 85px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .mobile-search-results .search-result-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mobile-search-results .search-result-title {
        font-size: 13px;
        font-weight: 600;
        margin: 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-search-results .search-result-meta {
        font-size: 11px;
        color: #999;
        margin: 0;
    }

    .mobile-search-results .search-result-tags {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
    }

    .mobile-search-results .search-tag {
        font-size: 10px;
        background: rgba(255, 255, 255, 0.1);
        padding: 2px 6px;
        border-radius: 8px;
        color: #ccc;
    }

    .mobile-search-results .no-results {
        padding: 40px 20px;
        text-align: center;
        color: #666;
    }

    .mobile-search-results .no-results p {
        margin: 0;
        font-size: 14px;
    }

    /* Desktop search results - hide on mobile */
    .desktop-search-results {
        display: none !important;
    }

    /* Smooth Scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Hide scrollbar but keep functionality */
    .drama-scroll {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .drama-scroll::-webkit-scrollbar {
        display: none;
    }
}

