/* Header Setting */
/*==============================
    NETFLIX STYLE DARK THEME
===============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Netflix standard fonts */
}

body{
    background:#141414; /* Netflix Dark Background */
    color:#e5e5e5; /* Netflix light text */
}

/* HEADER */

.header{
    position:sticky;
    top:0;
    z-index:9999;
    background:#000000;
    border-bottom:1px solid rgba(255,255,255,.05);
    display:flex;
    flex-direction:column;
    padding:10px 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,.7);
}

/* TOP */

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

/* LOGO */

.logo{
    flex-shrink:0;
}

.logo img{
    display:block;
    height:40px;
    width:auto;
    transition:.25s;
    filter:drop-shadow(0 2px 5px rgba(0,0,0,.5));
}

.logo img:hover{
    transform:scale(1.04);
}

/* SEARCH */

.search{
    flex:1;
    display:flex;
    align-items:center;
    overflow:hidden;
    border-radius:50px;
    background:#2b2b2b; /* Dark search box */
    border:1px solid rgba(255,255,255,.1);
    transition: all .25s ease;
}

.search:focus-within {
    background:#000000;
    border-color:#e50914; /* Netflix Red */
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.search input{
    flex:1;
    background:none;
    border:none;
    outline:none;
    color:#ffffff;
    padding:10px 14px;
    font-size:14px;
}

.search input::placeholder{
    color:#8c8c8c;
}

.search button{
    width:48px;
    height:42px;
    border:none;
    cursor:pointer;
    color:#fff;
    background:#e50914; /* Netflix Red */
    transition:.25s;
}

.search button:hover{
    background:#b20710; /* Darker Netflix Red */
}

/* MENU */

.menu{
    margin-top:10px;
    display:flex;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
}

.menu a{
    display:flex;
    align-items:center;
    gap:6px;
    text-decoration:none;
    color:#e5e5e5;
    padding:8px 16px;
    border-radius:12px;
    background:#181818;
    border:1px solid rgba(255,255,255,.05);
    transition:.25s;
    box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.menu a:hover{
    background:#e50914;
    color:#fff;
    transform:translateY(-2px);
    border-color:transparent;
    box-shadow: 0 4px 10px rgba(229, 9, 20,.3);
}

.menu span{
    font-size:13px;
    font-weight:600;
}

/*==============================
     TABLET & MOBILE
===============================*/

@media(max-width:768px){
    .header{ padding:8px 10px; }
    .topbar{ gap:8px; }
    .logo img{ height:34px; }
    .search input{ padding:8px 12px; font-size:13px; }
    .search button{ width:40px; height:38px; }
    
    .menu{
        display:grid;
        grid-template-columns:repeat(3,1fr);
        gap:6px;
    }
    
    .menu a{
        justify-content:center;
        flex-direction:column;
        padding:8px 4px;
        font-size:11px;
        text-align:center;
    }
    .menu span{ font-size:10px; }
}

@media (max-width:480px){
    .menu{ gap:4px; }
    .menu a{ min-height:46px; padding:4px 2px; }
    .menu a i,
    .menu a svg,
    .menu a img{ font-size:16px; width:16px; height:16px; }
    .menu span{ font-size:11px; }
}

/* Container Setting*/

/* ===== Modern 3D Pagination ===== */

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    margin:16px 0;
    padding:10px;
}

.pagination a,
.pagination span{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:46px;
    height:36px;
    padding:0 12px;
    font-size:18px;
    font-weight:700;
    color:#e5e5e5;
    text-decoration:none;
    border-radius:10px;
    background:#181818;
    border:1px solid rgba(255,255,255,.05);
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
    transition:all .25s ease;
}

.pagination a:hover{
    transform:translateY(-2px);
    background:#e50914;
    color:#fff;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
    border-color:#e50914;
}

.pagination .active,
.pagination span.current{
    background:#e50914;
    color:#fff;
    border-color:#e50914;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
    cursor:default;
}

.pagination .prev,
.pagination .next{ padding:0 14px; font-size:15px; }

.pagination .disabled{ opacity:.3; pointer-events:none; }

@media (max-width:768px){
    .pagination{ gap:6px; padding:6px; }
    .pagination a,
    .pagination span{ min-width:46px; height:36px; font-size:15px; border-radius:0px; padding:0 0px; }
}

/*==============================
    PLAYER
==============================*/

.responsive-iframe {
    position: relative;
    width: 100%;
    /* Standard 16:9 Aspect Ratio */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    background: #000;
}

.responsive-iframe iframe,
.responsive-iframe .loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: sans-serif;
}

@keyframes spin{ 100%{ transform:rotate(360deg); } }

/*==============================
    MODEL & TAGS
==============================*/

.flex{
    display:flex;
    align-items:center;
    margin:8px 0;
    padding:8px 12px;
    overflow:hidden;
    background:#181818;
    border:1px solid rgba(255,255,255,.05);
    border-radius:12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.list_title{
    display:flex;
    align-items:center;
    color:#ffffff;
    font-weight:700;
    white-space:nowrap;
    margin-right:10px;
    flex-shrink:0;
}

.list_title svg{
    width:18px;
    height:18px;
    margin-right:6px;
    color:#e50914;
}

.link-scroll{
    flex:1;
    overflow:hidden;
    white-space:nowrap;
}

.link-scroll .list_item{
    display:inline-block;
    padding-left:100%;
    animation:marquee 12s linear infinite;
    color:#e5e5e5;
    font-weight:600;
    text-decoration:none;
}

.link-scroll .list_item:hover{ color:#e50914; }

@keyframes marquee{
    0%{ transform:translateX(0); }
    100%{ transform:translateX(-100%); }
}

/*==============================
TITLE
==============================*/

.ish1{
    margin:12px 0 8px 0;
    color:#ffffff;
    background:#181818;
    padding:10px 14px;
    border:1px solid rgba(255,255,255,.05);
    border-radius:12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    font-size:18px;
    font-weight:700;
    white-space:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    -ms-overflow-style:none;
    cursor:grab;
}

.ish1::-webkit-scrollbar{ display:none; }

@media(max-width:768px){
    .ish1{ font-size:16px; padding:8px 12px; border-radius:10px; }
    .list_title{ font-size:13px; }
    .list_item{ font-size:13px; }
    .loading{ font-size:15px; }
}

/*=========================
    INFO CARD
=========================*/

.info-card{
    margin:12px 0;
    padding:12px;
    background:#181818;
    border:1px solid rgba(255,255,255,.05);
    border-radius:14px;
    box-shadow: 0 4px 15px rgba(0,0,0,.4);
}

.info-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin:6px 0;
}

.info-title{
    width:80px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    gap:6px;
    color:#a3a3a3;
    font-weight:700;
    font-size:14px;
}

.info-title svg{
    width:18px;
    height:18px;
    color:#e50914;
}

.info-scroll{
    flex:1;
    display:flex;
    gap:6px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    scrollbar-width:none;
}

.info-scroll::-webkit-scrollbar{ display:none; }

/* BUTTON */
.info-btn{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    padding:6px 14px;
    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    border-radius:4px; /* Squarer buttons like Netflix */
    background:#e50914;
    border:1px solid #e50914;
    box-shadow: 0 2px 8px rgba(229, 9, 20,.2);
    transition:.25s;
}

.info-btn:hover{
    transform:scale(1.05);
    background:#b20710;
    box-shadow: 0 4px 12px rgba(229, 9, 20,.4);
}

@media(max-width:768px){
    .info-card{ padding:10px; }
    .info-title{ width:70px; font-size:13px; }
    .info-btn{ font-size:12px; padding:6px 12px; }
}

/*==============================
        VIDEO CARD
==============================*/

.item{
    width:100%;
    background:#181818;
    border:1px solid rgba(255,255,255,.05);
    border-radius:6px; /* Netflix uses sharp or slightly rounded corners */
    overflow:hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.5);
    position: relative;
    z-index: 1;
}

.item:hover{
    transform: scale(1.08); /* Netflix pop-out effect */
    z-index: 2; /* Bring on top of other items */
    border-color:#e50914;
    box-shadow: 0 10px 30px rgba(0,0,0,.8);
}

.item a{
    display:block;
    color:#ffffff;
    text-decoration:none;
}

.image_container{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#222;
}

.image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition: transform .3s ease;
}

.quality{
    position:absolute;
    top:8px;
    left:8px;
    background:rgba(0,0,0,0.8);
    color:#fff;
    padding:2px 6px;
    border-radius:3px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size:9px;
    font-weight:700;
}

.duration{
    position:absolute;
    top:8px;
    right:8px;
    background:rgba(0,0,0,.8);
    color:#fff;
    padding:2px 6px;
    border-radius:3px;
    font-size:10px;
    font-weight:600;
}

.play-btn{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%) scale(0.9);
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(0,0,0,.6);
    color:#fff;
    border: 2px solid rgba(255,255,255,0.7);
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow: 0 4px 12px rgba(0,0,0,.5);
    transition: all .25s ease;
    opacity: 0; /* Hidden until hover like Netflix */
}

.item:hover .play-btn {
    transform:translate(-50%,-50%) scale(1);
    background:#e50914;
    color:#fff;
    border-color: #e50914;
    opacity: 1;
}

.overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 10px 8px 10px;
    background:linear-gradient(transparent, rgba(0,0,0,.9)); /* Darker gradient bottom */
}

.likes,
.views{
    display:flex;
    align-items:center;
    gap:4px;
    color:#e5e5e5;
    font-size:11px;
    font-weight:600;
}

.likes svg,
.views svg{ width:12px; height:12px; }

.item_title{
    padding:10px;
    color:#ffffff;
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

@media (max-width:992px){ .item_title{ font-size:13px; } }
@media (max-width:768px){
    .item{ border-radius:6px; }
    .item_title{ font-size:13px; padding:8px; }
    .quality, .duration{ font-size:9px; }
    .play-btn{ width:36px; height:36px; }
}

/*==================================
    PREMIUM FOOTER
==================================*/

.footer{
    margin-top:24px;
    background:#000000;
    border-top:1px solid rgba(255,255,255,.05);
    box-shadow: 0 -5px 20px rgba(0,0,0,.5);
}

.footer-content{
    max-width:1400px;
    margin:auto;
    padding:16px 14px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.copyright{
    margin:0;
    padding:10px 20px;
    color:#b3b3b3;
    font-size:13px;
    font-weight:600;
    letter-spacing:.3px;
    text-align:center;
    border-radius:40px;
    background:#181818;
    border:1px solid rgba(255,255,255,.05);
    transition:.3s ease;
}

.copyright:hover{
    transform:translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
    color: #fff;
}

@media (max-width:768px){
    .footer-content{ padding:12px 10px; }
    .copyright{ width:100%; font-size:12px; padding:8px 12px; }
}

/* EXTRA CATEGORY GRIDS */

main{ padding:10px; }

.categories{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
    gap:8px;
}

.categories a{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    text-decoration:none;
    text-align:center;
    color:#e5e5e5;
    font-size:13px;
    font-weight:700;
    border-radius:8px;
    background:#181818;
    border:1px solid rgba(255,255,255,.05);
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
    transition:.25s;
}

.categories a:hover{
    background:#e50914;
    color:#fff;
    transform:translateY(-2px) scale(1.02);
    border-color:transparent;
    box-shadow: 0 4px 12px rgba(229, 9, 20,.4);
}

.categories a:active{ transform:scale(.97); }

@media (max-width:992px){ .categories{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:768px){
    main{ padding:8px; }
    .categories{ grid-template-columns:repeat(2,1fr); gap:6px; }
    .categories a{ min-height:44px; font-size:12px; border-radius:6px; }
}

/* OTHER ITEMS */

.item img{ width:100%; }

.items {
  display: grid;
  gap: 12px;
  padding:0.5em 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 600px) {
  .items { display:block; }
  .item { margin-bottom: 12px; } /* Ensures spacing when stacked */
}

/* SHARE BOX */

.share-box{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    background:#181818;
    border:1px solid rgba(255,255,255,.05);
    padding:12px 16px;
    margin:12px 0;
    border-radius:8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

.share-title{
    color:#e5e5e5;
    font-size:14px;
    font-weight:600;
    margin-right:6px;
}

.share-btn{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    text-decoration:none;
    color:#fff;
    font-size:16px;
    transition:.25s;
    border:none;
    cursor:pointer;
}

.share-btn:hover{ transform:translateY(-2px) scale(1.06); }

/* Keep brand colors for share buttons */
.facebook{background:#1877F2;}
.twitter{background:#1DA1F2;}
.telegram{background:#26A5E4;}
.whatsapp{background:#25D366;}
.reddit{background:#FF4500;}
.copy{background:#4b5563;}

@media(max-width:600px){
    .share-box{ justify-content:center; }
    .share-title{ width:100%; text-align:center; margin-bottom:6px; }
    .share-btn{ width:40px; height:40px; font-size:16px; }
}

/* SCROLL MENU */

.scroll-menu{
    display:flex;
    align-items:center;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    padding:8px 14px;
    background:#141414;
    border-top:1px solid rgba(255,255,255,.05);
    border-bottom:1px solid rgba(255,255,255,.05);
    scrollbar-width:none;
    -ms-overflow-style:none;
    -webkit-overflow-scrolling:touch;
}

.scroll-menu::-webkit-scrollbar{ display:none; }

.scroll-menu a{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:6px;
    padding:8px 14px;
    background:#181818;
    color:#e5e5e5;
    text-decoration:none;
    border:1px solid rgba(255,255,255,.05);
    border-radius:4px;
    font-size:15px;
    font-weight:600;
    transition:.25s;
}

.scroll-menu a:hover{
    background:#e50914;
    color:#fff;
    border-color:#e50914;
    transform:translateY(-2px);
}

.scroll-menu a.active{
    background:#e50914;
    color:#fff;
    border-color:#e50914;
}

@media(max-width:768px){
    .scroll-menu{ padding:6px 10px; gap:6px; }
    .scroll-menu a{ padding:6px 12px; font-size:15px; }
}

/* STYLISH FOOTER LINKS */

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px 0;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #181818;
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.link-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2b2b2b;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.link-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.link-title {
    font-size: 13px;
    font-weight: 700;
    color: #e5e5e5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.link-desc {
    font-size: 11px;
    font-weight: 500;
    color: #8c8c8c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    background: #e50914;
    border-color: #e50914;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

.footer-links a:hover .link-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: transparent;
}

.footer-links a:hover .link-title,
.footer-links a:hover .link-desc {
    color: #ffffff;
}

@media(max-width: 992px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(1, 1fr);
        gap: 8px;
    }
}

.footer-bottom{
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #808080;
    padding: 16px 10px;
    font-size: 12px;
    font-weight: 500;
    background: #000000;
    letter-spacing: 0.3px;
}

.footer-bottom p {
    display: inline-block;
    padding: 6px 16px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

/* Advertisement Box */
.ad-box{
    width:100%;
    height:220px;              
    margin:12px 0;
    background:#181818;
    border:1px solid rgba(255,255,255,.05);
    border-radius:8px;
    overflow:hidden;
    position:relative;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
}

.ad-label{
    height:22px;
    line-height:22px;
    text-align:center;
    font-size:9px;
    color:#8c8c8c;
    letter-spacing:2px;
    background:#2b2b2b;
    border-bottom:1px solid rgba(255,255,255,.05);
    text-transform:uppercase;
    flex-shrink:0;
}

.ad-content{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

.ad-content iframe,
.ad-content img,
.ad-content ins,
.ad-content div,
.ad-content canvas{
    max-width:100%;
    max-height:100%;
    display:block;
    margin:auto;
}

@media (max-width:768px){
    .ad-box{ height:90px; }
}

/* Footer Directory Styles */
.footer-directory {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 16px 0 8px 0;
    width: 100%;
}

.directory-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    text-decoration: none;
    color: #e5e5e5;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.directory-badge {
    background: #e50914;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.directory-text {
    color: #ffffff;
    font-weight: 700;
}

.directory-desc {
    color: #8c8c8c;
    font-weight: 500;
    font-size: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 8px;
}

.external-icon {
    color: #8c8c8c;
    transition: transform 0.2s ease, color 0.2s ease;
}

.directory-link:hover {
    background: #181818;
    border-color: #e50914;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.2);
}

.directory-link:hover .external-icon {
    color: #e50914;
    transform: translate(2px, -2px);
}

/* Mobile Responsive Tweaks */
@media (max-width: 768px) {
    .header {
        padding: 8px 10px;
    }
    
    .topbar {
        gap: 8px;
    }
    
    .logo img {
        height: 32px;
    }
    
    .search input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .search button {
        width: 40px;
        height: 36px;
    }

    .scroll-menu {
        padding: 6px 8px;
        gap: 6px;
    }

    .scroll-menu a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .items {
        gap: 8px;
        padding: 0;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 0;
    }

    .footer-links a {
        padding: 10px 14px;
        height: auto;
    }

    .footer-directory {
        margin: 12px 0 6px 0;
        padding: 0 10px;
    }

    .directory-link {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
        border-radius: 8px;
    }

    .directory-desc {
        display: inline-block;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 8px;
        font-size: 11px;
    }

    .footer-bottom {
        padding: 12px 8px;
        font-size: 11px;
    }

    .footer-bottom p {
        padding: 4px 12px;
        border-radius: 14px;
    }

    .ad-box {
        height: 80px;
        margin: 8px 0;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .menu a {
        min-height: 42px;
        padding: 4px;
    }

    .menu span {
        font-size: 10px;
    }

    .directory-link {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .directory-desc {
        border-left: none;
        padding-left: 0;
        width: 100%;
    }
}
.keyword-scroll{
    display:flex;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    padding:0 15px 10px;
    scrollbar-width:none;
    -ms-overflow-style:none;
    scroll-behavior:smooth;
}

.keyword-scroll::-webkit-scrollbar{
    display:none;
}

.keyword-scroll span{
    flex:0 0 auto;
    background:#1c1c1c;
    color:#ddd;
    border:1px solid #2a2a2a;
    padding:8px 16px;
    border-radius:50px;
    font-size:14px;
    transition:.25s;
    cursor:pointer;
}

.keyword-scroll span:hover{
    background:#e50914;
    border-color:#e50914;
    color:#fff;
}

@media (max-width:768px){

    .keyword-scroll{
        flex-wrap:nowrap;      /* Keep in one line */
        overflow-x:auto;       /* Horizontal scroll */
    }

    .keyword-scroll span{
        font-size:13px;
        padding:7px 14px;
    }
}
/* Full-screen overlay with 70% opacity and blur */
.ad-modal-overlay {
    display: none; /* Hidden by default until JS fires */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 15px; /* Prevents touching edges on small screens */
    box-sizing: border-box;
}

/* The white box wrapping the ad and button */
.ad-modal-content {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 342px; /* 310px width + 16px padding on each side */
    box-sizing: border-box;
}

/* Fixed size Ad Container with fallback background */
.ad-container {
    width: 310px;
    height: 260px;
    max-width: 100%; /* Shrinks on tiny phones */
    background-color: #f1f5f9; /* Modern light slate background */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Text that shows if ad fails to load */
.ad-fallback-text {
    position: absolute;
    color: #94a3b8;
    font-size: 12px;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1; /* Sits behind the iframe */
}

/* Iframe strictly layered on top */
.ad-container iframe {
    z-index: 2;
    max-width: 100%; /* Prevents iframe from breaking container on mobile */
    border: none;
}

/* Modern close button styling */
/* Modern close button styling with Flexbox for the icon */
.big-close-btn {
    width: 100%;
    padding: 14px;
    background-color: #1e293b; /* Sleek dark blue/gray */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    
    /* New alignment rules for the icon */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Space between the X icon and the text */
}

.big-close-btn:hover {
    background-color: #0f172a; 
    transform: translateY(-1px);
}
/* Class to lock the website body from scrolling */
body.lock-scroll {
    overflow: hidden;
}




/* 
   ====================================
   MAIN UNIFIED CONTAINER
   ==================================== 
*/
.network-unified-box {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Box Styling */
    background: linear-gradient(135deg, #1e293b, #0f172a); /* Dark gradient background */
    border-bottom: 4px solid #ef4444; /* Red bottom line */
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Header Text Inside the Box */
.network-header-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0; /* Space between title and buttons */
}

/* 
   ====================================
   SITE CARDS LAYOUT
   ==================================== 
*/
.site-cards-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

/* Individual White Card */
.site-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

/* Left side alignment: Icon + Text */
.site-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icon Styling */
.icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #f1f5f9;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Text Container */
.site-details {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    transition: color 0.25s ease;
}

.site-subtitle {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    transition: color 0.25s ease;
}

/* Button ("Şimdi İncele") */
.action-btn {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

/* 
   ====================================
   HOVER EFFECTS (Card turns Black)
   ==================================== 
*/
.site-card:hover {
    background-color: #111111;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.site-card:hover .icon-wrapper {
    background-color: #222222;
    color: #ffffff;
}

.site-card:hover .site-title {
    color: #ffffff;
}

.site-card:hover .site-subtitle {
    color: #94a3b8;
}

.site-card:hover .action-btn {
    background-color: #ffffff;
    color: #111111;
    border-color: #ffffff;
}

/* 
   ====================================
   MOBILE RESPONSIVENESS
   ==================================== 
*/
@media (max-width: 900px) {
    .site-cards-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .network-unified-box {
        padding: 16px;
    }
}
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between buttons */
    background-color: #121212; /* Dark background matching your theme */
    padding: 20px;
}

.tag-btn {
    background-color: #1a1a1a; /* Dark button background */
    color: #ffffff; /* White text */
    border: 1px solid #2a2a2a;
    padding: 12px 20px;
    border-radius: 6px; /* Rounded corners */
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: center;
}

.tag-btn:hover {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

/* Example of an active/selected state like the red button in your image */
.tag-btn.active {
    background-color: #b31212;
    border-color: #d11a1a;
}


.image_container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9; /* Container is 16:9 */
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000; /* Fallback background color for sides */
}

/* Optional: Creates a blurred, zoomed-in version of the image to fill the empty side spaces nicely */
.image_container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6); /* Blurs and darkens the background fill */
    transform: scale(1.2); /* Prevents blur edge bleeding */
    z-index: 1;
}

/* The actual 9:16 image scaled to fit fully inside the 16:9 box */
.image_container .image {
    position: relative;
    z-index: 2; /* Sits on top of the blurred background */
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the entire 9:16 image is visible with no cropping */
    display: block;
    margin: 0 auto;
}