:root {
    --bg-main: #0B0B0E;
    --bg-secondary: #14141A;
    --bg-card: #1C1C24;
    --text-main: #F5F5F5;
    --text-muted: #A0A0B5;
    --accent-primary: #E50914;
    /* Netflix Red / Tasty Theme vibrant red */
    --accent-hover: #F40612;
    --accent-rating: #FFC107;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-muted {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff;
}

.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background-color: var(--accent-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    text-decoration: none !important;
}

.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

/* Header */
.site-header {
    background: rgba(11, 11, 14, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 56px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title a {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Site Branding & Custom Logo */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding .site-logo-link,
.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.site-branding .custom-logo,
.site-branding .site-logo-link img {
    height: auto;
    width: 180px;
    max-height: 45px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.site-branding .site-logo-link svg {
    display: block;
    height: auto;
    max-height: 45px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    font-weight: 500;
    color: #ffffff;
}

.main-navigation a:hover {
    color: var(--accent-primary);
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid var(--border-color);
}

.header-search .search-field {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    padding: 5px;
    width: 150px;
    transition: width 0.3s;
    font-family: var(--font-main);
}

.header-search .search-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search .search-field:focus {
    width: 200px;
}

.header-search .search-submit {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.mobile-actions {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.hero-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 11, 14, 0.95) 0%, rgba(11, 11, 14, 0.6) 25%, rgba(11, 11, 14, 0) 50%);
    display: flex;
    align-items: center;
    padding-left: 10%;
}

.hero-slide-content {
    max-width: 500px;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-rating {
    color: var(--accent-rating);
}

.hero-quality {
    background: rgba(229, 9, 20, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
}

.slider-btn {
    position: absolute;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    z-index: 10;
    border: none;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent-primary);
    color: #fff;
}

.prev-btn {
    right: 74px;
}

.next-btn {
    right: 20px;
}

/* Category Buttons */
.category-buttons-section {
    padding: 15px 20px 0 20px;
    position: relative;
    z-index: 20;
}

.category-buttons-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    padding-top: 5px;
    scrollbar-width: none;
}

.category-buttons-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cat-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

/* Sections Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 20px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.text-outline {
    font-size: 3.5rem;
    font-weight: 900 !important;
    font-family: 'Parkinsans', sans-serif !important;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-primary);
    letter-spacing: 2px;
}

.section-nav .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    transition: var(--transition);
}

.section-nav .nav-btn:hover {
    background: var(--accent-primary);
}

/* Trending Posts Slider */
.trending-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 0 20px 20px;
    margin-left: -20px;
    /* Counteract container padding for edge-to-edge look if needed */
}

.trending-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-right: 20px;
}

.trending-slider::-webkit-scrollbar {
    display: none;
}

.trending-slide {
    flex: 0 0 130px;
}

.trending-card {
    position: relative;
    padding-left: 20px;
    /* Less space so number overlaps */
}

.trending-rank {
    position: absolute;
    bottom: -15px;
    left: -10px;
    font-size: 7rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    -webkit-text-stroke: 2px #fff;
    line-height: 1;
    z-index: 3;
    font-family: 'Parkinsans', sans-serif !important;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.trending-poster {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 130px;
    height: 190px;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.trending-poster:hover {
    transform: scale(1.05);
}

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

.trending-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #4CAF50;
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Latest Posts */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.latest-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.latest-poster {
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.latest-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.latest-poster:hover img {
    transform: scale(1.08);
}

.latest-info {
    padding: 5px 0;
}

.latest-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.latest-title a:hover {
    color: var(--accent-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

/* Single Post Blog Layout */
.single-drama-article.blog-layout {
    max-width: 900px;
    margin: 40px auto;
    background: var(--bg-card);
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.single-header-compact {
    margin-bottom: 10px;
    text-align: left;
}

.single-title-compact {
    font-size: 1.6rem;
    margin: 5px 0;
    font-weight: 700;
    line-height: 1.2;
}

.single-categories-compact a {
    display: inline-block;
    background: var(--accent-primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0 5px 5px 0;
    text-transform: uppercase;
}

/* Telegram Join Card */
.telegram-join-card {
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(0, 136, 204, 0.3);
    border-radius: 6px;
    background: rgba(0, 136, 204, 0.08);
    display: flex;
    align-items: center;
    padding: 10px 15px;
    justify-content: space-between;
    overflow: hidden;
    animation: telegram-border-animation 2s infinite alternate;
}

@keyframes telegram-border-animation {
    0% {
        border-color: rgba(0, 136, 204, 0.1);
        box-shadow: 0 0 5px rgba(0, 136, 204, 0);
    }

    100% {
        border-color: rgba(0, 136, 204, 0.8);
        box-shadow: 0 0 15px rgba(0, 136, 204, 0.3);
    }
}

.telegram-join-card .tg-info {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.95rem;
    color: #fff;
}

.telegram-join-card .tg-info i {
    font-size: 24px;
    color: #0088cc;
    margin-right: 10px;
}

.tg-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #0088cc;
    color: #fff !important;
}

.tg-join-btn i {
    margin-right: 6px;
}

.tg-join-btn:hover {
    background: #006699;
    transform: scale(1.05);
}

.single-meta-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.single-excerpt {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.single-poster-image {
    width: 100%;
    margin-bottom: 10px;
}

.poster-img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.single-main-content {
    color: #ccc;
}

.single-main-content h1,
.single-main-content h2,
.single-main-content h3,
.single-main-content h4,
.single-main-content h5,
.single-main-content h6 {
    color: #fff;
    margin-top: 38px !important;
    margin-bottom: 12px !important;
    font-weight: 700;
    line-height: 1.15 !important;
}

.single-main-content h2 {
    font-size: 1.5rem;
}

.single-main-content h3 {
    font-size: 1.3rem;
}

.single-main-content h4 {
    font-size: 1.15rem;
}

.single-main-content h5 {
    font-size: 1rem;
}

.single-main-content p {
    margin-bottom: 15px;
}

.single-main-content img,
.wp-block-image img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.wp-block-image {
    margin: 20px 0;
}

.single-main-content a {
    color: var(--accent-primary);
}

/* Post Tags */
.single-tags {
    border: none !important;
    border-top: 1px solid var(--border-color) !important;
}

.single-tags .tags-links a {
    display: inline-block;
    color: var(--accent-primary);
    background: rgba(229, 9, 20, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 4px 4px 0;
    text-decoration: none;
    transition: var(--transition);
}

.single-tags .tags-links a:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* Series Info Box (Matches KatDrama Details Box) */
.series-info-box {
    background: #131019;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px 30px;
    margin: 25px auto 30px;
    max-width: 100%;
}

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

.info-header svg {
    flex-shrink: 0;
}

.info-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.3px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 16px;
}

.info-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border-bottom: none;
    font-size: 0.95rem;
    line-height: 1.4;
}

.info-label {
    width: 110px;
    min-width: 110px;
    flex-shrink: 0;
    color: #8e8d98;
    font-weight: 500;
    font-size: 0.95rem;
}

.info-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    flex-grow: 1;
}

.info-value .badge {
    background: #e50914;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.2px;
    vertical-align: middle;
}



/* Related Posts */
.related-posts-section {
    max-width: 900px;
    margin: 40px auto 0;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* =============================================================
   Comments Section (KatDrama Modern Layout)
   ============================================================= */
.comments-area {
    margin: 40px 0 20px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.comments-header {
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.comments-title,
.comment-reply-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-reply-title small {
    margin-left: auto;
    font-size: 0.85rem;
}

.cancel-reply-link-wrap a {
    color: var(--accent-primary);
    background: rgba(229, 9, 20, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.cancel-reply-link-wrap a:hover {
    background: var(--accent-primary);
    color: #fff;
}

.comment-notes {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.comment-list .comment {
    list-style: none;
    margin-bottom: 20px;
}

.comment-body {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: border-color 0.2s ease;
}

.comment-body:hover {
    border-color: rgba(229, 9, 20, 0.4);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author .avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    object-fit: cover;
    display: block;
}

.comment-author .fn {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    font-style: normal;
}

.comment-author .fn a {
    color: var(--text-main);
    text-decoration: none;
}

.comment-author .fn a:hover {
    color: var(--accent-primary);
}

.comment-metadata {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.comment-metadata a {
    color: var(--text-muted);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--accent-primary);
}

.comment-content {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 6px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(229, 9, 20, 0.12);
    color: var(--accent-primary);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-reply-link:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin: 15px 0 0 35px;
    padding-left: 15px;
    border-left: 2px solid rgba(229, 9, 20, 0.35);
}

.bypostauthor > .comment-body {
    border-color: rgba(229, 9, 20, 0.45);
    background: rgba(229, 9, 20, 0.04);
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-style: italic;
}

/* Comment Form */
.comment-respond {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.comment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-form label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.comment-form .required {
    color: var(--accent-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #111118;
    border: 1px solid #2d2d3f;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: #151520;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.form-submit {
    margin-top: 5px;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 12px 34px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.35);
    transition: all 0.25s ease;
}

.comment-submit-btn:hover {
    background: #b80710;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

@media (max-width: 768px) {
    .comments-area {
        padding: 20px 15px;
    }
    .comment-list .children {
        margin-left: 12px;
        padding-left: 10px;
    }
    .comment-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Redesign */
.custom-footer {
    background-color: #25252d;
    padding: 25px 0 10px;
    margin-top: 30px;
}

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

.footer-brand {
    margin-bottom: 10px;
}

.footer-desc {
    color: #ccc;
    font-size: 0.95rem;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.6;
}

.footer-links-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links-col {
    flex: 1;
    min-width: 150px;
}

.footer-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 700;
}

.footer-arrow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-arrow-list li {
    margin-bottom: 12px;
}

.footer-arrow-list a {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-arrow-list a i {
    font-size: 0.7rem;
}

.footer-arrow-list a:hover {
    color: var(--accent-primary);
}

.footer-follow-wrapper {
    margin-bottom: 15px;
}

.social-follow-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    max-width: 400px;
}

.follow-box-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #fff;
}

.follow-box-text h5 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.follow-box-text p {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 0;
}

.btn-tg-join {
    background: #0088cc;
    color: #fff !important;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    transition: var(--transition);
}

.btn-tg-join i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.btn-tg-join:hover {
    background: #006699;
    transform: translateY(-2px);
}

.footer-social-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 400px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

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

.social-icon.fb {
    background: #1877F2;
}

.social-icon.tw {
    background: #000000;
}

.social-icon.ig {
    background: #E4405F;
}

.social-icon.yt {
    background: #FF0000;
}

.social-icon.tg {
    background: #0088cc;
}

.social-icon.rss {
    background: #F26522;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-bottom p {
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .latest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    /* Mobile Header Fix */
    .header-container {
        flex-wrap: wrap;
        position: relative;
    }

    .site-title,
    .site-branding {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .mobile-actions {
        display: flex;
        gap: 25px;
        order: 2;
        margin-left: auto;
        align-items: center;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: block;
        background: transparent;
        border: none;
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        padding: 5px;
    }

    .main-navigation {
        width: 100%;
        display: none;
        position: absolute;
        top: 100%;
        /* Below header exactly */
        left: 0;
        background: var(--bg-secondary);
        z-index: 1001;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .main-navigation ul {
        background: transparent;
        padding: 20px;
        border-radius: 0;
    }

    .header-search {
        display: none;
        position: absolute;
        top: 100%;
        /* Below header */
        left: 0;
        width: 100%;
        background: transparent;
        padding: 15px 20px;
        z-index: 1001;
        box-shadow: none;
    }

    .main-navigation.menu-active,
    .header-search.menu-active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        background: transparent;
        padding: 20px;
        border-radius: 0;
    }

    .main-navigation ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
        width: 100%;
    }

    .main-navigation ul li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .header-search .search-form {
        width: 100%;
        border-radius: 6px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .header-search .search-field {
        width: 100%;
    }

    .header-search .search-field:focus {
        width: 100%;
    }

    /* Mobile Hero Slider */
    .hero-slider-section {
        height: auto;
        aspect-ratio: 16 / 9;
        /* Enforce 360x202 ratio approximately */
        max-height: 250px;
    }

    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .hero-meta {
        margin-bottom: 15px;
        font-size: 0.8rem;
    }

    .hero-slide-overlay {
        padding-left: 20px;
        background: linear-gradient(to right, rgba(11, 11, 14, 0.9) 0%, rgba(11, 11, 14, 0.5) 25%, rgba(11, 11, 14, 0) 50%);
        align-items: center;
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .hero-slide-content {
        max-width: 60%;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
    }

    .btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    /* Fluid Latest Posts Mobile 2-Col Grid */
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .latest-card {
        display: block;
        background: transparent;
    }

    .latest-poster {
        width: 100%;
        margin-bottom: 5px;
    }

    .latest-info {
        width: 100%;
        padding: 5px 0;
    }

    /* Trending Mobile Adjustments */
    .trending-slider-container {
        margin-right: -20px;
        margin-left: -20px;
        padding-left: 10px;
        width: calc(100% + 40px);
    }

    .trending-slider {
        gap: 10px;
    }

    .trending-slide {
        flex: 0 0 130px;
    }

    .trending-rank {
        font-size: 5.5rem;
        left: -10px;
    }

    .trending-card {
        padding-left: 20px;
    }

    .single-drama-article.blog-layout {
        padding: 15px;
        margin: 15px 0;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .info-label {
        width: 90px;
    }

    .single-title-compact {
        font-size: 1.4rem;
    }

    .poster-img {
        max-width: 100%;
    }

    .info-list {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 15px;
        /* Reduced gap on mobile */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Homepage SEO Content Box (Footer ke upar & Next ke baad) */
.homepage-seo-section {
    margin-top: 50px;
    margin-bottom: 25px;
}

.homepage-seo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.homepage-seo-title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.3;
}

.homepage-seo-text {
    color: #c0c0d2;
    font-size: 0.95rem;
    line-height: 1.8;
}

.homepage-seo-text p {
    margin-bottom: 16px;
}

.homepage-seo-text p:last-child {
    margin-bottom: 0;
}

.homepage-seo-text h3,
.homepage-seo-text h4 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.homepage-seo-text a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.homepage-seo-text a:hover {
    color: var(--accent-hover);
}

.homepage-seo-text ul,
.homepage-seo-text ol {
    margin-left: 20px;
    margin-bottom: 16px;
}

.homepage-seo-text li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .homepage-seo-section {
        margin-top: 35px;
        margin-bottom: 15px;
    }

    .homepage-seo-card {
        padding: 20px;
        border-radius: 8px;
    }

    .homepage-seo-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .homepage-seo-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

/* =============================================================
   Theme Toggle Button & Light Mode Theme Support
   ============================================================= */

/* Theme Toggle Button */
.header-theme-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    outline: none;
    position: relative;
    padding: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.08);
    color: var(--accent-primary);
}

.theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Icon Visibility in Dark Mode (Default) */
[data-theme="dark"] .theme-toggle-btn .moon-icon,
body:not(.light-mode) .theme-toggle-btn .moon-icon {
    display: none !important;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon,
body:not(.light-mode) .theme-toggle-btn .sun-icon {
    display: inline-block !important;
    color: #F59E0B;
}

/* Icon Visibility in Light Mode */
[data-theme="light"] .theme-toggle-btn .sun-icon,
body.light-mode .theme-toggle-btn .sun-icon {
    display: none !important;
}

[data-theme="light"] .theme-toggle-btn .moon-icon,
body.light-mode .theme-toggle-btn .moon-icon {
    display: inline-block !important;
    color: #374151;
}

/* =============================================================
   Light Mode Theme Styling
   ============================================================= */
:root[data-theme="light"],
body.light-mode {
    --bg-main: #f5f6f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-main: #18191f;
    --text-muted: #6b7280;
    --border-color: rgba(0, 0, 0, 0.08);
}

/* Header in Light Mode */
[data-theme="light"] .site-header,
body.light-mode .site-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .site-header .site-logo-link svg text,
body.light-mode .site-header .site-logo-link svg text {
    fill: #18191f;
}

[data-theme="light"] .custom-footer .site-logo-link svg text,
body.light-mode .custom-footer .site-logo-link svg text {
    fill: #ffffff;
}

[data-theme="light"] .main-navigation a,
body.light-mode .main-navigation a {
    color: #374151;
}

[data-theme="light"] .main-navigation a:hover,
body.light-mode .main-navigation a:hover {
    color: var(--accent-primary);
}

[data-theme="light"] .header-search .search-field,
body.light-mode .header-search .search-field {
    background: #f1f3f7;
    color: #18191f;
    border-color: #e2e5eb;
}

[data-theme="light"] .header-search .search-submit,
body.light-mode .header-search .search-submit {
    color: #6b7280;
}

[data-theme="light"] .theme-toggle-btn,
body.light-mode .theme-toggle-btn {
    background: #f1f3f7;
    border-color: #e2e5eb;
    color: #374151;
}

[data-theme="light"] .theme-toggle-btn:hover,
body.light-mode .theme-toggle-btn:hover {
    background: #e2e5eb;
}

[data-theme="light"] .mobile-actions button,
body.light-mode .mobile-actions button {
    color: #18191f;
}

/* Categories Pills in Light Mode */
[data-theme="light"] .cat-btn,
body.light-mode .cat-btn {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e2e5eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .cat-btn:hover,
body.light-mode .cat-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

/* Single Post in Light Mode */
[data-theme="light"] .single-drama-article.blog-layout,
body.light-mode .single-drama-article.blog-layout {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .single-title-compact,
body.light-mode .single-title-compact {
    color: #18191f;
}

[data-theme="light"] .single-meta-compact,
body.light-mode .single-meta-compact {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #6b7280;
}

[data-theme="light"] .series-info-box,
body.light-mode .series-info-box {
    background: #f8f9fc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .info-header h3,
body.light-mode .info-header h3 {
    color: #18191f;
}

[data-theme="light"] .info-label,
body.light-mode .info-label {
    color: #6b7280;
}

[data-theme="light"] .info-value,
body.light-mode .info-value {
    color: #18191f;
}

[data-theme="light"] .single-main-content,
body.light-mode .single-main-content {
    color: #374151;
}

[data-theme="light"] .single-main-content h1,
[data-theme="light"] .single-main-content h2,
[data-theme="light"] .single-main-content h3,
[data-theme="light"] .single-main-content h4,
body.light-mode .single-main-content h1,
body.light-mode .single-main-content h2,
body.light-mode .single-main-content h3,
body.light-mode .single-main-content h4 {
    color: #18191f;
}

[data-theme="light"] .download-section,
body.light-mode .download-section {
    background: #f1f3f7;
    border-color: #e2e5eb;
}

[data-theme="light"] .download-section h3,
body.light-mode .download-section h3 {
    color: #18191f;
}

/* Latest Grid and Cards in Light Mode */
[data-theme="light"] .latest-title,
[data-theme="light"] .latest-title a,
body.light-mode .latest-title,
body.light-mode .latest-title a {
    color: #18191f;
}

[data-theme="light"] .latest-title a:hover,
body.light-mode .latest-title a:hover {
    color: var(--accent-primary);
}

[data-theme="light"] .section-title,
[data-theme="light"] .related-title,
body.light-mode .section-title,
body.light-mode .related-title {
    color: #18191f;
}

/* Trending Netflix Ranking in Light Mode */
[data-theme="light"] .trending-rank,
body.light-mode .trending-rank {
    -webkit-text-stroke: 3px #18191f;
    color: transparent;
}

/* Pagination in Light Mode */
[data-theme="light"] .pagination .page-numbers,
body.light-mode .pagination .page-numbers {
    background: #ffffff;
    border-color: #e2e5eb;
    color: #18191f;
}

[data-theme="light"] .pagination .page-numbers.current,
[data-theme="light"] .pagination .page-numbers:hover,
body.light-mode .pagination .page-numbers.current,
body.light-mode .pagination .page-numbers:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

/* SEO Box in Light Mode */
[data-theme="light"] .homepage-seo-card,
body.light-mode .homepage-seo-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .homepage-seo-title,
body.light-mode .homepage-seo-title {
    color: #18191f;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .homepage-seo-text,
body.light-mode .homepage-seo-text {
    color: #4b5563;
}

/* Footer in Light Mode */
[data-theme="light"] .custom-footer,
body.light-mode .custom-footer {
    background-color: #1a1a24;
}

/* Comments in Light Mode */
[data-theme="light"] .comments-area,
body.light-mode .comments-area {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .comment-body,
body.light-mode .comment-body {
    background: #f8f9fc;
    border-color: #e5e7eb;
}

[data-theme="light"] .comment-body:hover,
body.light-mode .comment-body:hover {
    border-color: var(--accent-primary);
}

[data-theme="light"] .comment-author .fn,
body.light-mode .comment-author .fn {
    color: #18191f;
}

[data-theme="light"] .comment-author .fn a,
body.light-mode .comment-author .fn a {
    color: #18191f;
}

[data-theme="light"] .comment-content,
body.light-mode .comment-content {
    color: #374151;
}

[data-theme="light"] .comment-form input[type="text"],
[data-theme="light"] .comment-form input[type="email"],
[data-theme="light"] .comment-form input[type="url"],
[data-theme="light"] .comment-form textarea,
body.light-mode .comment-form input[type="text"],
body.light-mode .comment-form input[type="email"],
body.light-mode .comment-form input[type="url"],
body.light-mode .comment-form textarea {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #18191f;
}

[data-theme="light"] .comment-form input:focus,
[data-theme="light"] .comment-form textarea:focus,
body.light-mode .comment-form input:focus,
body.light-mode .comment-form textarea:focus {
    background: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

[data-theme="light"] .bypostauthor > .comment-body,
body.light-mode .bypostauthor > .comment-body {
    background: #fef2f2;
    border-color: rgba(229, 9, 20, 0.3);
}