/*
Theme Name: AnimeMod
Theme URI: https://filmy-zilla.net
Author: modsite
Author URI: https://filmy-zilla.net
Description: filmyzilla is a modern ultra-fast WordPress movie and web series theme designed for streaming, downloading, anime, and entertainment websites. Fully responsive, SEO optimized, lightweight, dark mode ready, and ACF compatible.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uhdmod
Tags: movie-theme, entertainment, streaming, dark-mode, responsive, custom-logo, featured-images, threaded-comments, translation-ready, blog, news, two-columns
*/

/* Main Css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet Ms';
}

body {
    background: radial-gradient(at 0% 0%, #201a23 0%, #2c2a3d45 30%, #1d182096 70%);
    background-color: #000000;
}

:root {
    --theme: #fdab06;
    --color: #f7f7f7;
}
/* notis bar */

.nix-notice-bar {
  width: 95%;
  max-width: 1300px;
	border-radius:5px;
  margin: 22px auto;
  padding: 16px 58px 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 12px;
  color: #fff;
  text-align: center;
  background: rgb(253, 171, 5, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nix-notice-bar span{
	font-size:20px;
}
.nix-notice-bar p {
  margin: 0;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
}
.nix-notice-bar p a {
  color: #fdab05;
  font-weight: 700;
  text-decoration: none;
}
.nix-notice-bar p a:hover {
  text-decoration: underline;
}
.nix-notice-visit {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.25s ease;
  flex-shrink: 0;
}
.nix-notice-visit img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  transform: rotate(-90deg);
  transition: 0.25s ease;
  filter: brightness(0) invert(1);
}
.nix-notice-visit:hover {
  background: rgba(255, 255, 255, 0.12);
}
.nix-notice-visit:hover img {
  transform: rotate(-90deg) translateX(2px);
}
/* header */

.nx-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(90deg,
            #1c1c1c,
            #2b2b2b);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nx-header-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
    height: 62px;
    display: flex;
    align-items: center;
}

.nx-logo {
    margin-right: 40px;
}

.nx-logo a {
    color: #ff6b00;
    font-size: 34px;
    font-weight: 800;
    text-decoration: none;
}

.nx-logo a img {
    width: 160px;
}

.nx-menu {
    flex: 1;
}

.nx-nav {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}


.nx-nav a {
    color: #f3f3f3;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: .3s;
}

.nx-nav a:hover {
    color: #ff6b00;
}

.nx-search-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

.nx-search-btn svg {
    width: 28px;
    height: 28px;
}

.nx-search-wrapper {
    position: relative;
}

.nx-search-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

}

.nx-search-btn svg {
    width: 28px;
    height: 28px;
}

.close-icon {
    display: none;
    font-size: 24px;
    font-weight: 700;
}

.nx-search-wrapper.active .search-icon {
    display: none;
}

.nx-search-wrapper.active .close-icon {
    display: block;
}

.nx-search-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 320px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .25s ease;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .4);
    backdrop-filter: blur(10px);
}

.nx-search-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 15px;
    width: 14px;
    height: 14px;
    background: #181818;
    transform: rotate(45deg);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.nx-search-wrapper.active .nx-search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nx-search-dropdown form {
    display: flex;
    gap: 10px;
}

.nx-search-dropdown input {
    flex: 1;
    height: 45px;
    border: none;
    outline: none;
    padding: 0 15px;
    border-radius: 8px;
    background: #222;
    color: #fff;
}

.nx-search-dropdown button {
    width: 50px;
    border: none;
    border-radius: 8px;
    background: #ff6b00;
    color: #fff;
    cursor: pointer;
}

.nx-search-dropdown button svg {
    width: 20px;
    height: 20px;
    color: #fff;
}


.menu-close,
#menu-toggle,
.main-menu-toggle svg {
    display: none !important;
}

@media(max-width:991px) {

    .nx-nav {
        gap: 18px;
    }

    .nx-nav a {
        font-size: 15px;
    }

}

@media (max-width:768px) {

    .nx-header-container {
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        align-items: center;
        height: 62px;
        padding: 0 15px;
        position: relative;
    }

    /* Hide desktop spacing */

    .nx-logo {
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nx-logo a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nx-logo img {
        width: 165px;
        max-width: 100%;
        display: block;
    }

    /* Hamburger */

    .main-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 42px;
        height: 42px;
        cursor: pointer;
        z-index: 1001;
    }

    .main-menu-toggle svg {
        display: block !important;
        width: 24px;
        height: 24px;
    }

    /* Search */

    .nx-search-wrapper {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .nx-search-btn {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 1001;
    }

    .nx-search-btn svg {
        width: 26px;
        height: 26px;
    }

    .nx-menu {
        position: absolute;
    }

    #menu-main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        padding: 0 30px;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        overflow-y: auto;
        transition: left .5s ease-in-out;
        z-index: 9999;

        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #menu-toggle:checked~.nx-menu #menu-main-menu {
        left: 0;
    }

    /* Menu Items */

    #menu-main-menu li {
        list-style: none;
        margin: 0;
        padding: 18px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    #menu-main-menu li:last-child {
        border-bottom: none;
    }

    #menu-main-menu li a {
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        display: block;
    }

    #menu-main-menu li.current-menu-item a {
        color: #fdab06;
    }

    /* Close Button */

    .menu-close {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #fff;
        color: #111;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: .3s;
    }

    .menu-close:hover {
        background: #fdab06;
        transform: rotate(90deg);
    }

    .menu-close svg {
        width: 24px;
        height: 24px;
    }

    /* Search Popup */

    .nx-search-dropdown {
        width: 290px;
        right: 0;
    }

}


.menu-close,
#menu-toggle {
    display: none;
}

@media(max-width:768px) {

    #menu-toggle {
        display: none;
    }

    .menu-close {
        display: flex;
    }

}

/* latest post */

.latest-posts {
    display: flex;
    flex-direction: column;
    max-width: 1350px;
    margin: 20px auto;
    /* Added padding to prevent touching edges on mobile */
    padding: 0 15px; 
}

.latest-title {
    font-size: 20px;
    color: var(--color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.latest-title svg {
    width: 27px;
    height: 28px;
}

.latest-title.category-title svg {
    width: 20px;
}

/* Base grid setup (Desktop) */
.post-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.latest-post-link {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
    overflow: hidden;
}

.post-wrapper .latest-post-link .thumbnail-image {
    width: 100%;
    position: relative;
}

.post-wrapper .latest-post-link .thumbnail-image img {
    aspect-ratio: 9/13;
    width: 100%;
    border-radius: 5px 5px 0 0;
    transition: all 0.4s ease;
    object-fit: cover; /* Ensures images fit without stretching */
}

.latest-post-link:hover {
    transform: translateY(-10px);
    background: rgba(253, 171, 5, 0.16);
    border-color: rgba(253, 171, 5, 0.28);
    box-shadow: inset 0 1px 0 rgba(253, 171, 5, 0.16),
        0 0 10px rgba(253, 171, 5, 0.16);
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.post-info {
    display: flex;
    justify-content: start;
}

.post-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color);
    line-height: 1.4;
}

.post-meta span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 400;
}

.post-meta span.current-season {
    border-right: 1.5px solid rgba(255, 255, 255, 0.4);
    padding-right: 7px;
}

.post-meta span.season-episodes {
    border-left: 1.5px solid rgba(255, 255, 255, 0.4);
    padding-left: 7px;
}

.nx-pagination {
    display: flex;
    justify-content: center;
    margin: 42px auto 0;
}

.nx-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nx-pagination .page-numbers li {
    list-style: none;
}

.nx-pagination .page-numbers a,
.nx-pagination .page-numbers span {
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--color);
    transition: 0.3s ease;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nx-pagination .page-numbers a:hover {
    transform: translateY(-2px);
    background: rgba(253, 171, 5, 0.16);
    border-color: rgba(253, 171, 5, 0.28);
    box-shadow: inset 0 1px 0 rgba(253, 171, 5, 0.16),
        0 0 10px rgba(253, 171, 5, 0.16);
}

.nx-pagination .page-numbers .current {
    background: linear-gradient(135deg, rgb(253, 171, 5), rgba(253, 171, 5, 0.6));
    border-color: transparent;
    box-shadow: 0 0 10px rgba(253, 171, 5, 0.6), 0 0 0 1px rgba(253, 171, 5, 0.6);
}

.nx-pagination .page-numbers .prev,
.nx-pagination .page-numbers .next {
    padding: 0 18px;
}

.nx-pagination .page-numbers .dots {
    min-width: auto;
    padding: 0 4px;
    color: rgba(220, 220, 220, 0.55);
    background: 0;
    border: 0;
    box-shadow: none;
}


/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */

/* Laptops / Small Desktops */
@media (max-width: 1200px) {
    .post-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablets Landscape */
@media (max-width: 992px) {
    .post-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets Portrait & Large Mobile */
@media (max-width: 768px) {
    .post-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; 
    }
    
    .latest-title {
        font-size: 18px;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .post-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }

    .post-meta {
        padding: 8px;
        gap: 6px;
    }

    .post-title {
        font-size: 13px;
    }

    .post-meta span {
        font-size: 12px;
    }

    /* Make pagination smaller to fit on mobile */
    .nx-pagination .page-numbers a,
    .nx-pagination .page-numbers span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }
}
/* single post */

.single-post-wrapper {
    display: flex;
    max-width: 1300px;
    width: 95%; /* Added to prevent touching screen edges */
    flex-direction: column;
    margin: 50px auto;
    gap: 20px;
    background: linear-gradient(135deg, #1a1a1a, #111);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 20px;
    border-radius: 8px;
}

.single-post-wrapper .main-wrapper {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, .25);
}

.single-post-wrapper .main-wrapper .left-section {
    display: flex;
    max-width: 300px;
}

.single-post-wrapper .main-wrapper .left-section img {
    aspect-ratio: 10/14;
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;
}

.right-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.acf-post-title {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
}

.post-genre {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-genre a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: rgba(66, 66, 70, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 18px rgba(0, 0, 0, 0.12);
    transition: 0.28s ease;
}

.storyline {
    color: #fff;
}

.storyline h4 {
    font-size: 18px;
}

.storyline p {
    color: #c8c8c8;
    margin-top: 10px;
    line-height: 1.6;
}

.acf-post-info {
    display: flex;
    flex-direction: column;
    list-style: none;
    color: #fff;
    gap: 15px;
    padding: 0; /* Reset padding for mobile */
}

.acf-post-info li strong {
    font-weight: 600;
    color: #f7f7f7;
}

.acf-post-info li a {
    text-decoration: none;
    color: var(--theme);
}

.acf-post-info li {
    color: #c4c4c4;
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-section h3 {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    background: #d38f06;
    padding: 8px 0;
    border-radius: 4px;
}

.download-section h3 img {
    width: 25px;
}

/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */

/* Tablets & Small Laptops */
@media (max-width: 992px) {
    .single-post-wrapper {
        margin: 60px auto; 
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .single-post-wrapper {
        margin: 30px auto;
        padding: 15px;
        width: 100%; /* Take full width on mobile */
        border-radius: 0; /* Optional: remove radius on mobile for full bleed */
        border-left: none;
        border-right: none;
    }

    .single-post-wrapper .main-wrapper {
        flex-direction: column; /* Stack image and text */
        align-items: center; /* Center the image */
    }

    .single-post-wrapper .main-wrapper .left-section {
        max-width: 100%;
        justify-content: center; /* Center image horizontally */
    }

    .single-post-wrapper .main-wrapper .left-section img {
        width: 220px; /* Slightly larger image for centered mobile view */
        max-width: 100%;
    }

    /* Center title and genres on mobile */
    .acf-post-title {
        text-align: center;
        font-size: 22px;
    }

    .post-genre {
        justify-content: center;
    }
}

/* Very Small Mobile Phones */
@media (max-width: 480px) {
    .single-post-wrapper {
        margin: 15px auto;
    }

    .single-post-wrapper .main-wrapper .left-section img {
        width: 180px; 
    }

    .acf-post-title {
        font-size: 18px;
    }

    .storyline h4 {
        font-size: 16px;
    }

    .storyline p {
        font-size: 14px;
    }

    .acf-post-info li {
        font-size: 14px;
    }

    .download-section h3 {
        font-size: 16px;
    }
}

/* =========================
   MOVIE DOWNLOAD
========================= */

.download-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, .25);
}

.download-item:last-child {
    border-bottom: none;
}

.download-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 25px;
}

.download-size {
    font-size: 13px;
    background: rgba(255, 255, 255, 0.364);
    padding: 12px 0;
    color: #1b1b1b;
    border-radius: 0 5px 5px 0;
    width: 65px;
    text-align: center; /* Added to center text inside the block */
}

.download-btn {
    min-width: 190px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    padding-left: 15px; /* Slightly adjusted for balance */
    font-size: 15px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ff9800, #ff6d00);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: .3s;
}

.download-btn:hover {
    transform: translateY(-3px);
}

/* Tablet & Large Mobile */
@media(max-width: 768px) {
    .download-item {
        padding: 30px 15px;
    }

    .download-title {
        font-size: 18px; /* Slightly smaller than your original 20px for better fit */
    }

    .download-btn {
        width: 100%;
        max-width: 400px; /* Prevents it from looking comical on iPads */
        font-size: 16px;
    }
}

/* Small Mobile Phones */
@media(max-width: 480px) {
    .download-item {
        padding: 20px 10px;
    }

    .download-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .download-btn {
        font-size: 14px;
        padding-left: 10px;
    }
    
    .download-size {
        padding: 10px 0;
        width: 60px;
    }
}

/* =========================
   SERIES DOWNLOAD
========================= */

.nx-download-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.nx-download-card {
    padding: 25px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, .25);
}

.nx-file-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 20px;
}

.nx-download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nx-btn {
    min-width: 210px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    padding-left: 15px;
    font-size: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: .3s;
}

.nx-btn small {
    font-size: 13px;
    background: rgba(255, 255, 255, 0.364);
    padding: 12px;
    color: #1b1b1b;
    border-radius: 0 5px 5px 0;
    text-align: center;
    min-width: 65px; /* Ensures consistent size block */
}

.nx-btn-zip {
    background: linear-gradient(135deg, #ff9800, #ff6d00);
}

.nx-btn-download {
    background: linear-gradient(135deg, #00c853, #009624);
}

.nx-btn:hover {
    transform: translateY(-4px);
}

/* Tablet & Large Mobile */
@media(max-width: 768px) {
    .nx-download-card {
        padding: 20px 10px;
    }
    
    .nx-file-title {
        font-size: 17px;
    }

    .nx-btn {
        width: 100%;
        max-width: 400px;
        min-width: 100%;
    }
}

/* Small Mobile Phones */
@media(max-width: 480px) {
    .nx-file-title {
        font-size: 15px;
    }

    .nx-btn {
        font-size: 14px;
        padding-left: 10px;
    }

    .nx-btn small {
        padding: 10px;
        font-size: 12px;
    }
}
/* Importnat Notes */

.nx-notes-box {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0b0d14;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .35);
}

.nx-notes-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg,
            #cc1b1b,
            #9f2813);
}

.nx-notes-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    font-size: 18px;
}

.nx-notes-content {
    padding: 25px;
}

.nx-notes-content ul {
    margin: 0;
    padding-left: 25px;
}

.nx-notes-content li {
    color: #e8e8e8;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.nx-notes-content li:last-child {
    margin-bottom: 0;
}

/* footer */

.nx-footer {
    width: 100%;
    margin-top: 60px;
}

.nx-footer-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nx-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-footer-brand {
    flex: 1;
    max-width: 760px;
}

.nx-footer-logo {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    color: #fdab05;
}

.nx-footer-brand p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.68);
}

.nx-telegram {
    flex: 0 0 auto;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    background: rgba(0, 172, 251, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(34, 158, 217, 0.18);
    transition: 0.3s ease;
}

.nx-telegram img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.nx-telegram:hover {
    transform: translateY(-3px);
    background: rgba(34, 158, 217, 0.85);
}

.nx-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 22px 0;
}

.nx-footer-links a {
    min-width: 100px;
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15%;
    text-decoration: none;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.25s ease;
}

.nx-footer-links a:hover {
    color: #fff;
    background: #fdab05;
    box-shadow: 0 0 12px rgba(253, 171, 5, 0.6);
}

.nx-footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.nx-footer-bottom span {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1024px) {
    .nx-footer {
        margin-top: 50px;
        padding: 0 10px 16px;
    }

    .nx-footer-wrap {
        padding: 24px;
        border-radius: 20px;
    }

    .nx-footer-top {
        gap: 18px;
    }

    .nx-footer-logo {
        font-size: 28px;
    }

    .nx-footer-brand p {
        font-size: 14px;
        line-height: 1.75;
    }

    .nx-footer-links {
        gap: 12px;
    }

    .nx-footer-links a {
        min-width: 92px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nx-footer {
        margin-top: 40px;
        padding: 0 10px 14px;
    }

    .nx-footer-wrap {
        padding: 20px;
        border-radius: 18px;
    }

    .nx-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding-bottom: 20px;
    }

    .nx-footer-brand {
        max-width: 100%;
    }

    .nx-footer-logo {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .nx-footer-brand p {
        font-size: 14px;
        line-height: 1.7;
    }

    .nx-telegram {
        width: 100%;
        min-height: 46px;
    }

    .nx-footer-links {
        justify-content: flex-start;
        gap: 10px;
        padding: 18px 0;
    }

    .nx-footer-links a {
        min-width: calc(50% - 5px);
        height: 42px;
        font-size: 13px;
        padding: 0 14px;
        border-radius: 12px;
    }

    .nx-footer-bottom {
        padding-top: 16px;
    }

    .nx-footer-bottom span {
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .nx-footer {
        margin-top: 34px;
        padding: 0 8px 12px;
    }

    .nx-footer-wrap {
        padding: 16px;
        border-radius: 16px;
    }

    .nx-footer-logo {
        font-size: 22px;
    }

    .nx-footer-brand p {
        font-size: 13px;
        line-height: 1.65;
    }

    .nx-telegram {
        min-height: 44px;
        font-size: 14px;
        border-radius: 10px;
    }

    .nx-telegram img {
        width: 20px;
        height: 20px;
    }

    .nx-footer-links {
        gap: 8px;
        padding: 16px 0;
    }

    .nx-footer-links a {
        min-width: 100%;
        height: 40px;
        font-size: 13px;
        border-radius: 10px;
    }

    .nx-footer-bottom span {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .nx-footer-wrap {
        padding: 14px;
    }

    .nx-footer-logo {
        font-size: 20px;
    }

    .nx-footer-brand p {
        font-size: 12px;
    }

    .nx-telegram {
        font-size: 13px;
    }

    .nx-footer-links a {
        height: 38px;
        font-size: 12px;
    }
}

/* Custom Genre template */

.genre-wrapper {

    max-width: 1400px;
    margin: auto;
    padding: 50px 20px;

}

.genre-header {

    text-align: center;
    margin-bottom: 40px;

}

.genre-header h3 {

    font-size: 30px;
    color: #fff;
    margin-bottom: 15px;

}

.genre-header p {

    color: #999;
    margin: 15px 0 25px;

}

#genreSearch {

    width: 100%;
    max-width: 500px;
    height: 55px;

    background: #1d1d24;

    border: 1px solid #333;

    border-radius: 50px;

    padding: 0 20px;

    color: #fff;

    font-size: 16px;

    outline: none;

}

.genre-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

    gap: 20px;

}

.genre-card {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 22px;

    border-radius: 10px;

    text-decoration: none;

    background: linear-gradient(135deg, #222, #2f2f3b);

    border: 1px solid rgba(255, 255, 255, .05);

    transition: .35s;

    position: relative;

    overflow: hidden;

}

.genre-card:before {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    background: rgba(255, 255, 255, .04);

    border-radius: 50%;

    top: -90px;
    right: -90px;

    transition: .4s;

}

.genre-card:hover {

    transform: translateY(-8px);

    border-color: #ff9800;

    box-shadow: 0 5px 10px rgba(255, 152, 0, .25);

}

.genre-card:hover:before {

    transform: scale(1.4);

}

.genre-name {

    font-size: 19px;

    font-weight: 700;

    color: #fff;

}

.genre-count {

    font-size: 13px;

    padding: 6px 12px;

    border-radius: 5px;

    background: #ff9800;

    color: #fff;

    font-weight: 600;

}

/* telegram popup */
.tg-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;

}

.tg-popup-overlay.show {
    display: flex;
    animation: fade .35s;
}

@keyframes fade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.tg-popup {
    position: relative;
    z-index: 1;
    max-width: 430px;
    padding: 20px;
    text-align: center;
    border-radius: 24px;
    background: radial-gradient(120% 90% at 50% -10%, rgb(255 181 71 / .16), transparent 60%), var(--bg-card);
    border: 1px solid #ffffff3b;
    box-shadow: 0 30px 80px -30px rgb(0 0 0 / .85), 0 0 0 1px rgb(255 255 255 / .03) inset, 0 -1px 40px -10px rgb(255 45 85 / .25);
    animation: tgPopupZoomIn .45s cubic-bezier(.34, 1.56, .64, 1) both;
}

.tg-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #2d2d36;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.5s ease-in-out;
}

.tg-close:hover {
    background: #fd0000;
}

.tg-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 18px;
    color: #fff;
    background: linear-gradient(120deg, #ffd166 0%, #ff7a45 48%, #ff2d55 100%);
    box-shadow: 0 14px 34px -10px rgb(255 45 85 / .65);
    position: relative;
    flex-shrink: 0;
}

.tg-icon span {
    border: 1px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 50%;


}

.tg-icon svg {
    width: 35px;
    height: 35px;
}

.tg-popup h2 {
    color: #fff;
    margin-bottom: 15px;
}

.tg-popup p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 25px;
}

.tg-join {
    font-size: 16px;
    display: block;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffbf55, #ff4d5c);
    color: #000000;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 15px;
}

.tg-later {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 15px;
}