/* MediaShow 前端样式 */

/* 单个媒体项页面样式 */
.mediashow-single-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mediashow-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.mediashow-backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
}

.mediashow-content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mediashow-poster-section {
    flex: 0 0 300px;
    position: relative;
}

.mediashow-poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mediashow-corner-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mediashow-source-badge,
.mediashow-rating-badge,
.mediashow-type-badge,
.mediashow-language-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.mediashow-details-section {
    flex: 1;
}

.mediashow-title {
    margin-top: 0;
    font-size: 2.5em;
    color: #333;
}

.mediashow-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #666;
}

.mediashow-genres {
    margin-bottom: 20px;
}

.mediashow-genre {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.mediashow-description h3,
.mediashow-actors h3,
.mediashow-directors h3,
.mediashow-production-companies h3 {
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.mediashow-description p {
    line-height: 1.6;
    color: #555;
}

.mediashow-actors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* 演员表横向滚动样式 */
.mediashow-actors-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    margin: 15px 0;
}

.mediashow-actors-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome Safari */
}

.mediashow-actors-scroll-container .mediashow-actors-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 10px 0;
}

.mediashow-actor {
    text-align: center;
    width: 80px;
}

.mediashow-actor-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    color: #999;
}

.mediashow-actor-name {
    font-size: 12px;
    display: block;
}

.mediashow-directors ul,
.mediashow-production-companies ul {
    list-style: none;
    padding: 0;
}

.mediashow-directors li,
.mediashow-production-companies li {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 媒体归档页面样式 */
.mediashow-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mediashow-archive-header {
    margin-bottom: 30px;
    text-align: center;
}

.mediashow-archive-title {
    font-size: 2em;
    color: #333;
    margin: 0;
}

.mediashow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.mediashow-grid-item {
    transition: transform 0.3s ease;
}

.mediashow-grid-item:hover {
    transform: translateY(-5px);
}

/* 媒体卡片样式 */
.mediashow-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.mediashow-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.mediashow-card-poster {
    position: relative;
    height: 330px;
    overflow: hidden;
}

.mediashow-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mediashow-card:hover .mediashow-card-image {
    transform: scale(1.05);
}

.mediashow-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
}

.mediashow-card-corner-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.mediashow-card-source-badge,
.mediashow-card-rating-badge,
.mediashow-card-type-badge,
.mediashow-card-language-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.mediashow-card-actions {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.mediashow-card:hover .mediashow-card-actions {
    opacity: 1;
}

.mediashow-card-action-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.mediashow-card-action-button:hover {
    background: #f0f0f0;
}

.mediashow-card-download {
    color: #28a745;
}

.mediashow-card-share {
    color: #17a2b8;
}

.mediashow-card-favorite {
    color: #dc3545;
}

.mediashow-card-like {
    color: #007bff;
}

.mediashow-card-content {
    padding: 15px;
}

.mediashow-card-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.mediashow-card-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.mediashow-card-title a:hover {
    color: #0073aa;
}

.mediashow-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.mediashow-card-description {
    font-size: 0.9em;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

/* 分页样式 */
.mediashow-pagination {
    margin-top: 40px;
    text-align: center;
}

.mediashow-pagination .nav-links {
    display: inline-flex;
    gap: 5px;
}

.mediashow-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.mediashow-pagination .page-numbers:hover,
.mediashow-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
}

/* 短代码网格样式 */
.mediashow-shortcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.mediashow-shortcode-grid-item {
    transition: transform 0.3s ease;
}

.mediashow-shortcode-grid-item:hover {
    transform: translateY(-5px);
}

/* 短代码分页样式 */
.mediashow-shortcode-pagination {
    margin-top: 30px;
    text-align: center;
}

.mediashow-shortcode-pagination a,
.mediashow-shortcode-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.mediashow-shortcode-pagination a:hover,
.mediashow-shortcode-pagination .current {
    background: #0073aa;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mediashow-content-wrapper {
        flex-direction: column;
    }
    
    .mediashow-poster-section {
        flex: 0 0 auto;
    }
    
    .mediashow-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .mediashow-card-poster {
        height: 225px;
    }
    
    .mediashow-shortcode-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .mediashow-backdrop {
        height: 250px;
    }
    
    .mediashow-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .mediashow-single-container,
    .mediashow-archive-container {
        padding: 10px;
    }
    
    .mediashow-content-wrapper {
        padding: 15px;
    }
    
    .mediashow-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    
    .mediashow-card-poster {
        height: 195px;
    }
    
    .mediashow-shortcode-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .mediashow-card-content {
        padding: 10px;
    }
    
    .mediashow-card-title {
        font-size: 1em;
    }
}