/**
 * IXNDN Video Upload Pro - Frontend CSS
 */

/* ===== 通用 ===== */
.ixndn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== 视频网格 ===== */
.ixndn-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.ixndn-video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ixndn-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.ixndn-video-card a {
    text-decoration: none;
    color: inherit;
}
.ixndn-video-card .video-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f0f0f0;
}
.ixndn-video-card .video-thumbnail-placeholder {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}
.ixndn-video-card .video-info {
    padding: 15px;
}
.ixndn-video-card .video-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.ixndn-video-card .video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #6c757d;
}
.ixndn-video-card .video-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.ixndn-video-card .badge-ppv {
    background: #fef3c7;
    color: #d97706;
}
.ixndn-video-card .badge-tier {
    background: #dbeafe;
    color: #1e40af;
}
.ixndn-video-card .badge-free {
    background: #d1fae5;
    color: #065f46;
}

/* ===== 播放器 ===== */
.ixndn-player-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.ixndn-player-wrapper video {
    width: 100%;
    display: block;
}
.ixndn-player-wrapper .player-info {
    padding: 15px;
    background: #fff;
}
.ixndn-player-wrapper .player-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}
.ixndn-player-wrapper .player-description {
    color: #6c757d;
    font-size: 14px;
}
.ixndn-player-wrapper .player-category {
    display: inline-block;
    background: #f0f0f1;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-top: 8px;
}

/* ===== 搜索 ===== */
.ixndn-search-wrapper {
    max-width: 800px;
    margin: 20px auto;
}
.ixndn-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.ixndn-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}
.ixndn-search-input:focus {
    border-color: #6366f1;
    outline: none;
}
.ixndn-search-btn {
    padding: 12px 24px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}
.ixndn-search-btn:hover {
    background: #4f46e5;
}
.ixndn-search-suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    display: none;
    z-index: 1000;
}
.ixndn-search-suggestions .suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.ixndn-search-suggestions .suggestion-item:hover {
    background: #f8f7ff;
}
.ixndn-search-suggestions .suggestion-item img {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}
.ixndn-search-results .video-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}
.ixndn-search-results .video-item:hover {
    background: #f8f7ff;
}
.ixndn-search-results .video-item img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}
.ixndn-search-results .video-info {
    flex: 1;
}
.ixndn-search-results .video-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}
.ixndn-search-results .video-meta {
    font-size: 13px;
    color: #6c757d;
}
.ixndn-search-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.ixndn-search-pagination .page-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.ixndn-search-pagination .page-btn.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}
.ixndn-search-pagination .page-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* ===== PPV ===== */
.ixndn-ppv-wrapper {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}
.ixndn-ppv-price {
    font-size: 24px;
    font-weight: bold;
    color: #6366f1;
    display: block;
    margin-bottom: 10px;
}
.ixndn-ppv-purchase-btn {
    padding: 12px 30px;
    font-size: 16px;
}
.ixndn-ppv-purchased {
    font-size: 16px;
    color: #22c55e;
}
.ixndn-ppv-message {
    margin-top: 10px;
    font-size: 14px;
}

/* ===== 分享按钮 ===== */
.ixndn-share-wrapper {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}
.ixndn-share-label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}
.ixndn-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ixndn-share-buttons .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    color: #fff !important;
}
.ixndn-share-buttons .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0.9;
    color: #fff !important;
}
.ixndn-share-url {
    margin-top: 10px;
}
.ixndn-share-url input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}
.ixndn-share-url input:hover {
    border-color: #6366f1;
}

/* ===== 排行榜 ===== */
.ixndn-leaderboard {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ixndn-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.ixndn-leaderboard-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}
.ixndn-leaderboard-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f1;
}
.ixndn-leaderboard-table tr:hover td {
    background: #f8f7ff;
}
.ixndn-leaderboard .rank-medal {
    font-size: 18px;
}

/* ===== 会员套餐 ===== */
.ixndn-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.ixndn-tier-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ixndn-tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.ixndn-tier-card .tier-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}
.ixndn-tier-card .tier-price {
    font-size: 28px;
    font-weight: bold;
    color: #6366f1;
    margin: 10px 0;
}
.ixndn-tier-card .tier-features {
    list-style: none;
    padding: 0;
    text-align: left;
}
.ixndn-tier-card .tier-features li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 14px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .ixndn-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .ixndn-search-results .video-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .ixndn-search-results .video-item img {
        width: 100%;
        height: auto;
    }
    .ixndn-tiers-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ixndn-tiers-grid {
        grid-template-columns: 1fr;
    }
    .ixndn-share-buttons .share-btn {
        font-size: 12px;
        padding: 4px 10px;
    }
}