/* 播放页专用样式 */
.vod-play-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.play-breadcrumb {
    font-size: 14px;
    margin: 10px 0 18px;
    padding: 12px;
    background-color: #fafafa;
    border-radius: 4px;
    border-left: 3px solid #0066cc;
}

.play-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.play-breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.play-breadcrumb li:not(:last-child)::after {
    content: ">";
    padding: 0 6px;
    color: #999;
}

.play-breadcrumb a,
.play-breadcrumb span {
    padding: 0 4px;
}

.play-breadcrumb span {
    color: #666;
}

.play-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.play-title {
    font-size: 28px;
    color: #222;
    margin-bottom: 0;
    line-height: 1.3;
}

.play-title small {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.share-widget {
    position: relative;
    display: inline-flex;
}

.share-trigger {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
}

.share-trigger:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 30;
}

.share-widget:hover .share-menu,
.share-widget:focus-within .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

.share-item:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
    text-decoration: none;
}

.share-copy {
    width: 100%;
}

.player-section,
.line-section,
.episode-section,
.control-section,
.synopsis-section,
.info-section,
.recommend-section,
.comment-section {
    margin-bottom: 34px;
}

.player-wrapper {
    width: 100%;
    height: 560px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.player-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.player-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 15px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.line-buttons,
.control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.line-btn,
.episode-btn,
.control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    font-size: 14px;
}

.line-btn {
    min-width: 100px;
    padding: 0 16px;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
}

.episode-btn {
    width: 100%;
    padding: 0 8px;
}

.line-btn:hover,
.episode-btn:hover,
.control-btn:hover {
    border-color: #0066cc;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
}

.line-btn.active,
.episode-btn.active,
.control-btn.primary {
    border-color: #0066cc;
    background: #0066cc;
    color: #fff;
}

.control-btn {
    min-width: 120px;
    padding: 0 18px;
}

.control-btn.disabled {
    background: #f2f2f2;
    color: #999;
    border-color: #e3e3e3;
    cursor: not-allowed;
}

.synopsis-content,
.info-grid,
.comment-placeholder {
    padding: 16px;
    background: #f9f9f9;
    border-radius: 4px;
    color: #555;
}

.synopsis-content {
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px 24px;
}

.info-row {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.info-row .label {
    min-width: 52px;
    color: #666;
}

.info-row .value {
    flex: 1;
    color: #333;
    word-break: break-word;
}

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

.vod-card a {
    display: block;
}

.vod-card:hover {
    transform: translateY(-3px);
}

.vod-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vod-poster {
    position: relative;
    width: 100%;
    padding-bottom: 145%;
    border-radius: 4px;
    background: #ddd;
    overflow: hidden;
    margin-bottom: 8px;
}

.vod-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vod-remark {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 2px;
}

.vod-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 992px) {
    .episode-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .player-wrapper {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .vod-play-container {
        padding: 15px;
    }

    .play-head-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .play-title {
        font-size: 22px;
    }

    .play-title small {
        display: block;
        margin-top: 6px;
        font-size: 14px;
    }

    .share-trigger {
        min-height: 36px;
        font-size: 13px;
        padding: 0 14px;
    }

    .share-menu {
        right: auto;
        left: 0;
    }

    .player-wrapper {
        height: 250px;
    }

    .section-title {
        font-size: 18px;
    }

    .episode-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .line-btn,
    .control-btn {
        min-width: 90px;
        min-height: 36px;
        font-size: 13px;
    }

    .recommend-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .episode-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .recommend-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.player-iframe {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.player-iframe .MacPlayer,
.player-iframe .MacPlayer iframe,
.player-iframe iframe {
    width: 100% !important;
    height: 100% !important;
}

.player-iframe .MacPlayer iframe,
.player-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
}

/* Dark theme polish */
body[data-theme="dark"] .play-title {
    color: #f2f2f2;
}

body[data-theme="dark"] .play-title small,
body[data-theme="dark"] .play-breadcrumb span,
body[data-theme="dark"] .info-row .label {
    color: #9ca3ac;
}

body[data-theme="dark"] .line-btn,
body[data-theme="dark"] .episode-btn,
body[data-theme="dark"] .control-btn,
body[data-theme="dark"] .share-trigger {
    background: #1f2328;
    border-color: #32363d;
    color: #d9dee5;
}

body[data-theme="dark"] .control-btn.disabled {
    background: #1a1e23;
    border-color: #2c3138;
    color: #727a83;
}

body[data-theme="dark"] .share-menu {
    background: #1a1d22;
    border-color: #2f343c;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

body[data-theme="dark"] .share-item {
    background: #232830;
    border-color: #333946;
    color: #e3e8ef;
}

body[data-theme="dark"] .share-item:hover,
body[data-theme="dark"] .line-btn:hover,
body[data-theme="dark"] .episode-btn:hover,
body[data-theme="dark"] .control-btn:hover {
    background: var(--cta);
    border-color: var(--cta);
    color: #fff;
}

body[data-theme="dark"] .synopsis-content,
body[data-theme="dark"] .info-grid,
body[data-theme="dark"] .comment-placeholder {
    background: #17191c;
    border: 1px solid #2a2d33;
    color: #c9cfd7;
}

body[data-theme="dark"] .info-row .value,
body[data-theme="dark"] .vod-name,
body[data-theme="dark"] .section-title {
    color: #f0f0f0;
}

body[data-theme="dark"] .vod-poster {
    background: #2a2f36;
}