/* Media Portal - Dreamstime Style: Gray Nav + White Body + Magenta Accent */

:root {
    --mg-main: #e0186c;
    --mg-deep: #c41260;
    --mg-light: #fce8f2;
    --mg-soft: #fff4f9;
    --nav-bg: #444444;
    --nav-dark: #333333;
    --clr-text: #1f1f1f;
    --clr-sub: #4d4d4d;
    --clr-muted: #999999;
    --clr-surface: #ffffff;
    --clr-base: #f6f6f6;
    --clr-base2: #efefef;
    --clr-border: #e0e0e0;
    --clr-border-soft: #ebebeb;
    --clr-shadow: rgba(0, 0, 0, 0.07);
    --clr-shadow-md: rgba(0, 0, 0, 0.13);
    --grad-mg: linear-gradient(135deg, #e0186c 0%, #c41260 100%);
    --grad-nav: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
    --grad-soft: linear-gradient(135deg, #fce8f2 0%, #fff0f8 100%);
    --r-xs: 3px;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 20px;
    --ease: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--clr-base);
    color: var(--clr-text);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== SITE HEADER - Dreamstime gray nav style ===== */
.dt-header {
    background: var(--grad-nav);
    padding: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    border-bottom: 2px solid var(--mg-main);
}

.dt-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dt-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.dt-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.dt-logo-name {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
    line-height: 1.2;
}

.dt-logo-name em {
    color: var(--mg-main);
    font-style: normal;
}

.dt-domain-box {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(224, 24, 108, 0.5);
    border-radius: var(--r-sm);
    padding: 5px 13px;
}

.dt-domain-box .dlabel {
    font-size: 11px;
    font-weight: 700;
    color: var(--mg-main);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.dt-domain-box .durl {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
}

/* ===== LAYOUT ===== */
.dt-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.dt-row {
    padding: 8px 0;
}

/* ===== CATEGORY NAVIGATION ===== */
.dt-nav-box {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 1px 5px var(--clr-shadow);
}

.dt-nav-line {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--clr-border-soft);
}

.dt-nav-line:last-child {
    border-bottom: none;
}

.dt-zone-tag {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    background: var(--nav-dark);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.dt-cat-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--clr-surface);
}

.dt-cat-links a {
    display: inline-block;
    color: var(--clr-sub);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--r-xs);
    transition: var(--ease);
    background: var(--clr-base);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.dt-cat-links a:hover,
.dt-cat-links a.active {
    background: var(--grad-mg);
    color: #fff;
    border-color: var(--mg-main);
    box-shadow: 0 2px 8px rgba(224, 24, 108, 0.28);
    font-weight: 600;
}

/* ===== SEARCH BAR - Dreamstime style: white box with pink button ===== */
.dt-search-bar {
    background: var(--clr-surface);
    border-radius: var(--r-md);
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow);
}

.dt-search-bar form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.dt-search-bar input[type="text"] {
    flex: 1;
    min-width: 60px;
    padding: 9px 14px;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--r-sm);
    background: var(--clr-base);
    color: var(--clr-text);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
    font-family: inherit;
}

.dt-search-bar input[type="text"]:focus {
    border-color: var(--mg-main);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(224, 24, 108, 0.1);
}

.dt-search-bar input[type="text"]::placeholder {
    color: var(--clr-muted);
}

.dt-search-bar button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--grad-mg);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.dt-search-bar button:hover {
    background: linear-gradient(135deg, #c41260 0%, #a00e50 100%);
    box-shadow: 0 4px 12px rgba(224, 24, 108, 0.3);
}

/* ===== HOT KEYWORD TAGS ===== */
.dt-hot-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    background: var(--clr-surface);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow);
}

.dt-hot-tags a {
    padding: 4px 11px;
    background: var(--clr-base2);
    border-radius: 3px;
    color: var(--clr-sub);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--clr-border);
}

.dt-hot-tags a:hover {
    background: var(--grad-mg);
    color: #fff;
    border-color: var(--mg-main);
    box-shadow: 0 2px 6px rgba(224, 24, 108, 0.2);
}

/* ===== SECTION BLOCKS ===== */
.dt-section {
    margin-bottom: 12px;
}

.dt-sec-head {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--clr-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dt-sec-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--grad-mg);
    border-radius: 2px;
}

.dt-sec-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--clr-text);
    letter-spacing: -0.3px;
}

.dt-sec-title a {
    color: var(--clr-text);
    text-decoration: none;
    transition: var(--ease);
}

.dt-sec-title a:hover {
    color: var(--mg-main);
}

/* ===== MEDIA CARD GRID ===== */
.dt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.dt-grid li {
    position: relative;
    animation: dtFadeIn 0.4s ease backwards;
}

.dt-grid li:nth-child(1) { animation-delay: 0.03s; }
.dt-grid li:nth-child(2) { animation-delay: 0.06s; }
.dt-grid li:nth-child(3) { animation-delay: 0.09s; }
.dt-grid li:nth-child(4) { animation-delay: 0.12s; }
.dt-grid li:nth-child(5) { animation-delay: 0.15s; }
.dt-grid li:nth-child(6) { animation-delay: 0.18s; }
.dt-grid li:nth-child(7) { animation-delay: 0.21s; }
.dt-grid li:nth-child(8) { animation-delay: 0.24s; }

@keyframes dtFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dt-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm);
    aspect-ratio: 600 / 350;
    background: var(--clr-base2);
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}

.dt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

.dt-thumb:hover {
    box-shadow: 0 5px 16px rgba(224, 24, 108, 0.16);
    border-color: rgba(224, 24, 108, 0.3);
}

.dt-thumb:hover img {
    transform: scale(1.06);
}

.dt-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.26s ease;
}

.dt-thumb:hover::after {
    opacity: 1;
}

.dt-caption {
    padding: 7px 0 2px;
}

.dt-caption h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--clr-text);
}

.dt-caption h5 a {
    color: var(--clr-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ease);
}

.dt-caption h5 a:hover {
    color: var(--mg-main);
}

/* ===== VIDEO PLAYER ===== */
.dt-player {
    width: 100%;
    background: #000;
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px var(--clr-shadow-md);
    height: 600px;
    max-height: 600px;
    position: relative;
}

.dt-player iframe,
.dt-player video,
.dt-player #video-container {
    width: 100%;
    height: 100%;
    border: none;
}

.MacPlayer {
    background: #000;
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 5px 20px var(--clr-shadow-md);
}

/* ===== TORRENT CAPTURE ===== */
.dt-preview {
    width: 100%;
}

.dt-preview img,
.dt-preview .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--r-sm);
    border: 1px solid var(--clr-border);
    display: block;
}

.dt-preview .img_item {
    width: 100%;
}

/* ===== ACTION BUTTONS ===== */
.dt-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px;
    background: var(--clr-surface);
    border-radius: var(--r-md);
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow);
    margin: 12px 0;
}

.dt-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--grad-mg);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 10px rgba(224, 24, 108, 0.25);
}

.dt-btn:hover {
    background: linear-gradient(135deg, #c41260 0%, #a00e50 100%);
    box-shadow: 0 5px 14px rgba(224, 24, 108, 0.38);
    transform: translateY(-1px);
}

.dt-btn:active {
    transform: translateY(0);
}

/* ===== SHARE STRIP ===== */
.dt-share {
    background: var(--clr-surface);
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin: 12px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dt-url-box {
    background: var(--clr-base);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.dt-url-lbl {
    font-weight: 700;
    font-size: 12px;
    color: var(--mg-main);
    white-space: nowrap;
    flex-shrink: 0;
}

.dt-url-val {
    font-size: 12px;
    color: var(--clr-sub);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-copy-btn {
    padding: 9px 16px;
    background: var(--grad-mg);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(224, 24, 108, 0.22);
}

.dt-copy-btn:hover {
    box-shadow: 0 5px 12px rgba(224, 24, 108, 0.35);
    transform: translateY(-1px);
}

.dt-copy-btn:active {
    transform: translateY(0);
}

.dt-clip {
    font-size: 14px;
}

/* ===== DETAIL INFO BOX ===== */
.dt-info-head {
    line-height: 1.8;
    text-align: center;
    padding: 14px 18px;
    font-size: 16px;
    margin: 12px 0;
    word-break: break-all;
    background: var(--grad-soft);
    border-radius: var(--r-md);
    border: 1px solid rgba(224, 24, 108, 0.15);
}

.dt-info-head a {
    color: var(--mg-deep);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
    transition: var(--ease);
}

.dt-info-head a:hover {
    color: var(--mg-main);
}

.dt-specs {
    font-size: 15px;
    line-height: 1.85;
    padding: 18px 20px;
    background: var(--clr-surface);
    border-radius: var(--r-md);
    border: 1px solid var(--clr-border);
    margin: 12px 0;
    box-shadow: 0 1px 5px var(--clr-shadow);
}

/* ===== PAGINATION ===== */
.dt-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.dt-pg-btn {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    background: var(--clr-surface);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}

.dt-pg-btn:hover {
    background: var(--grad-mg);
    border-color: var(--mg-main);
    color: #fff;
    box-shadow: 0 2px 8px rgba(224, 24, 108, 0.22);
}

.dt-pg-cur {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--r-sm);
    background: var(--grad-mg);
    color: #fff;
    border: 1px solid var(--mg-main);
    cursor: default;
    font-weight: 700;
    font-size: 13px;
    min-width: 36px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(224, 24, 108, 0.22);
}

/* ===== FRIEND LINKS ===== */
.dt-flinks {
    padding: 10px 12px;
    background: var(--clr-surface);
    border-radius: var(--r-md);
    border: 1px solid var(--clr-border);
}

.dt-flinks dl {
    margin: 0;
}

.dt-flinks dd {
    display: inline-block;
    margin: 3px 4px;
}

.dt-flinks a {
    color: var(--clr-sub);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.dt-flinks a:hover {
    color: var(--mg-main);
}

/* ===== SITE FOOTER ===== */
.dt-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid var(--mg-main);
    margin-top: 16px;
    background: var(--nav-dark);
}

.dt-footer p {
    margin: 5px 0;
    color: #aaaaaa;
    font-size: 12px;
}

.dt-footer a {
    color: #aaaaaa;
    text-decoration: none;
    transition: var(--ease);
}

.dt-footer a:hover {
    color: var(--mg-main);
}

/* ===== VISIBILITY HELPERS ===== */
.vis-pc {
    display: block;
}

.vis-mb {
    display: block;
}

@media (max-width: 768px) {
    .vis-pc {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .vis-mb {
        display: none !important;
    }
}

/* ===== CLEARFIX ===== */
.cf::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== LAZY IMG ===== */
img[data-original] {
    background: var(--clr-base2);
}

/* ===================================================
   RESPONSIVE
   =================================================== */

/* ── 481px ~ 768px ── */
@media (min-width: 481px) and (max-width: 768px) {
    .dt-wrap {
        padding: 0 10px;
    }

    .dt-row {
        padding: 6px 0;
    }

    .dt-logo-name {
        font-size: 22px;
    }

    .dt-domain-box .dlabel {
        font-size: 10px;
    }

    .dt-domain-box .durl {
        font-size: 14px;
    }

    /* 导航: 左15% 区域名, 右85% 链接, 每行4个, 字体13px */
    .dt-zone-tag {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
    }

    .dt-cat-links {
        width: 85%;
        gap: 4px;
        padding: 7px 6px;
    }

    .dt-cat-links a {
        font-size: 13px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
    }

    /* 影片: 每行2个 */
    .dt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    /* 搜索同行不换行 */
    .dt-search-bar form {
        flex-wrap: nowrap;
    }

    .dt-search-bar button {
        padding: 9px 10px;
        font-size: 12px;
    }

    .dt-player {
        height: 56.25vw;
        max-height: 400px;
    }
}

/* ── ≤480px ── */
@media (max-width: 480px) {
    .dt-wrap {
        padding: 0 8px;
    }

    .dt-row {
        padding: 5px 0;
    }

    .dt-header {
        padding: 0.4rem 0;
    }

    .dt-logo-name {
        font-size: 20px;
    }

    .dt-domain-box {
        padding: 4px 10px;
        gap: 5px;
    }

    .dt-domain-box .dlabel {
        font-size: 10px;
    }

    .dt-domain-box .durl {
        font-size: 13px;
    }

    /* 导航: 左15% 区域名, 右85% 链接, 每行4个, 字体12px */
    .dt-zone-tag {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .dt-cat-links {
        width: 85%;
        gap: 3px;
        padding: 6px 4px;
    }

    .dt-cat-links a {
        font-size: 12px;
        padding: 4px 1px;
        width: calc((100% - 9px) / 4);
    }

    /* 影片: 每行2个 */
    .dt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .dt-caption h5 {
        font-size: 12px;
    }

    .dt-sec-title {
        font-size: 15px;
    }

    /* 搜索同行不换行 */
    .dt-search-bar form {
        flex-wrap: nowrap;
    }

    .dt-search-bar input[type="text"] {
        min-width: 50px;
        padding: 8px 9px;
        font-size: 12px;
    }

    .dt-search-bar button {
        padding: 8px 7px;
        font-size: 11px;
    }

    .dt-btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    .dt-actions {
        gap: 6px;
        padding: 10px 8px;
    }

    .dt-share {
        padding: 9px 10px;
        gap: 7px;
        flex-wrap: nowrap;
    }

    .dt-url-box {
        padding: 7px 9px;
    }

    .dt-url-lbl {
        font-size: 11px;
    }

    .dt-url-val {
        font-size: 10px;
    }

    .dt-copy-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .dt-player {
        height: 56.25vw;
        max-height: 300px;
    }

    .dt-pg-btn, .dt-pg-cur {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }
}
