/* --------------------------------------------------
   V13 91porny 1:1 极品影院暗黑金主题样式表
   作者：Antigravity
   时间：2026-07-01
   -------------------------------------------------- */

/* 1. Global Reset & Variables */
:root {
    --bg-main: #060606;
    --bg-card: #131313;
    --bg-card-hover: #1c1c1c;
    --border-card: #202020;
    --color-text: #eaeaea;
    --color-meta: #888888;
    --color-gold: #ffb90f;
    --color-gold-hover: #ff9f00;
    --color-white: #ffffff;
    --max-width: 1200px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

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

/* 2. Layout Wrapper */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px;
}

/* 3. Header Styling */
.header {
    background-color: #0b0b0b;
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-gold);
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--color-white);
    margin-left: 2px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid #303030;
    border-radius: 20px;
    padding: 4px 12px;
    width: 280px;
    transition: border-color 0.2s;
}

.search-bar:focus-within {
    border-color: var(--color-gold);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-size: 13px;
    width: 100%;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--color-meta);
    cursor: pointer;
    margin-left: 5px;
    font-size: 15px;
}

.search-btn:hover {
    color: var(--color-gold);
}

/* 4. Breadcrumbs */
.breadcrumb {
    font-size: 12px;
    color: var(--color-meta);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

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

/* 5. Section Header */
.section-title-wrap {
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--color-meta);
    margin-top: 4px;
}

/* 6. Responsive Card Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.video-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    background-color: var(--bg-card-hover);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-color: #333;
}

.video-cover-wrap {
    position: relative;
    width: 100%;
    padding-top: 62.5%; /* 16:10 Ratio */
    background-color: #000;
    overflow: hidden;
}

.video-cover-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-cover-wrap img {
    transform: scale(1.05);
}

.badge-update {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: 500;
}

.video-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.video-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.video-card:hover .video-title {
    color: var(--color-gold);
}

.video-meta {
    font-size: 11px;
    color: var(--color-meta);
    display: flex;
    justify-content: space-between;
}

/* 7. Bottom Tags and Link Cloud */
.tag-cloud-wrap {
    background-color: #0b0b0b;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.tag-cloud-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    line-height: 1.8;
}

.tag-item {
    font-size: 13px;
    color: var(--color-text);
}

.tag-item span {
    color: var(--color-gold);
    font-weight: bold;
    margin-right: 2px;
}

.tag-item:hover {
    color: var(--color-white);
}

/* 8. Footer Styling */
.footer {
    background-color: #050505;
    border-top: 1px solid var(--border-card);
    color: var(--color-meta);
    font-size: 12px;
    padding: 25px 15px;
    text-align: center;
    line-height: 2;
}

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

.footer-nav a {
    color: var(--color-meta);
    margin: 0 10px;
}

.footer-nav a:hover {
    color: var(--color-gold);
}

.footer-warning {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    padding: 10px;
    max-width: 800px;
    margin: 15px auto 15px auto;
    font-weight: bold;
    font-size: 11.5px;
    line-height: 1.5;
}

/* 9. Player Page Custom UI */
.player-container {
    background-color: #000;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    overflow: visible;
    margin-bottom: 25px;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Set aspect ratio to keep it responsive and fixed-height */
}

.player-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.play-video-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
    line-height: 1.4;
}

.video-detail-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 13px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--color-meta);
    width: 80px;
    flex-shrink: 0;
}

.detail-value {
    color: var(--color-text);
}

/* 10. Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 25px 0 35px 0;
}

.page-num {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--color-text);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    min-width: 32px;
    text-align: center;
}

.page-num:hover, .page-num.active {
    background-color: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
    font-weight: bold;
}

/* 11. Media Queries (Responsive Adjustments) */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .search-bar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    .search-bar {
        width: 100%;
    }
    .play-video-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-warning {
        font-size: 10px;
    }
}

/* 12. Scrollbar Hiding for Category Navigation */
.category-nav::-webkit-scrollbar {
    display: none !important;
}
.category-nav {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 13. Ad Popups Default Hidden to prevent flashing during load */
#ad-popup-overlay, #ad-popup-overlay-2 {
    display: none;
}

/* 14. Ad Popup Mask & Card Styles (1:1 from V1) */
.ad-popup-mask {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.85) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(5px) !important;
}
.ad-popup-card {
    background: #111111 !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 16px !important;
    width: 90% !important;
    max-width: 480px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
    overflow: hidden !important;
    animation: popupScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 auto;
}
@keyframes popupScaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.ad-popup-header {
    background: #1a1a1a !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.ad-popup-title {
    color: #ffb90f !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(255,185,15,0.3) !important;
}
.ad-popup-x {
    color: #888 !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    padding: 5px !important;
    line-height: 1 !important;
}
.ad-popup-x:hover {
    color: #fff !important;
}
.ad-popup-body {
    padding: 20px !important;
    background: #090909 !important;
    overflow-y: auto !important;
    max-height: 70vh !important;
}
.ad-popup-content {
    color: #eee !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}
.ad-popup-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 auto !important;
}
.ad-popup-footer {
    background: #1a1a1a !important;
    padding: 12px 20px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    display: flex !important;
    justify-content: flex-end !important;
}
.ad-btn-close {
    background: linear-gradient(135deg, #ffb90f, #fb8500) !important;
    color: #000 !important;
    border: none !important;
    padding: 8px 24px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(251,133,0,0.3) !important;
}
.ad-btn-close:hover {
    transform: scale(1.05);
    background: #fff !important;
}

/* MacCMS skin overrides */
.category-nav {
    border-top: 1px solid #1c1c1c;
    padding: 8px 0;
    background-color: #090909;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.category-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 18px;
    align-items: center;
}
.category-nav a {
    font-size: 13.5px;
    color: var(--color-text);
    flex-shrink: 0;
    white-space: nowrap;
}
.category-nav a.active,
.category-nav a:hover {
    color: var(--color-gold);
}
.category-nav a.active {
    font-weight: bold;
}

.tag-cloud.cluster-ft-p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    line-height: 1.8;
}
.tag-cloud.cluster-ft-p a,
.tag-cloud .cluster-ft-a {
    font-size: 13px;
    color: var(--color-text);
    margin-right: 0.35em;
}
.tag-cloud.cluster-ft-p a:hover,
.tag-cloud .cluster-ft-a:hover {
    color: var(--color-white);
}

/* SEO 干扰节点不参与卡片布局 */
.video-card [style*="display:none"],
.video-card [style*="display: none"],
.video-card blockquote[style*="none"],
.video-card q[style*="none"],
.video-card code[style*="none"] {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* MacCMS 播放器嵌入 */
.player-container {
    aspect-ratio: 16 / 9;
    min-height: 0;
}
.player-container .MacPlayer,
.player-container #player,
.player-container iframe,
.player-container video,
.player-container .dplayer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.pagination {
    flex-wrap: wrap;
}
