/* ============================================
   StreamVault Theme Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #2c0b30 0%, #121222 100%);
    min-height: 100vh;
    padding: 30px 20px 100px;
    color: #fff;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 680px;
    margin: 0 auto;
}

/* ============================================
   Header Top
   ============================================ */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: #a828d8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.logo-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.logo-text {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
}
.age-tip {
    background: #222;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #ccc;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.back-btn {
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
}
.back-btn svg {
    width: 20px;
    height: 20px;
}
.back-btn:hover {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   Main Card
   ============================================ */
.main-card {
    background: rgba(45,40,65,0.55);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}
.card-tag {
    font-size: 12px;
    color: #ff88ff;
    margin-bottom: 6px;
}
.card-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.2;
}
.card-desc {
    font-size: 13px;
    color: #bbbbcc;
    margin-bottom: 20px;
    line-height: 1.5;
}
.btn-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.btn-gray {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #ddd;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: default;
    font-family: inherit;
}
.btn-pink-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(90deg, #f048c8, #c238e8);
    border: none;
    color: white;
    font-weight: bold;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}
.btn-pink-big:hover {
    opacity: 0.9;
}
.btn-pink-big svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Game Bar
   ============================================ */
.game-bar {
    background: rgba(45,40,65,0.55);
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,0.08);
}
.game-bar-left {
    color: #fff;
    font-weight: 500;
}
.game-bar-right {
    color: #bbb;
}

/* ============================================
   Video Section
   ============================================ */
.video-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.video-title-wrap .tag {
    font-size: 12px;
    color: #ff88ff;
}
.video-title-wrap h2 {
    font-size: 22px;
    margin-top: 4px;
    font-weight: bold;
}
.refresh-btn {
    background: #333;
    border: none;
    color: #ddd;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-family: inherit;
}
.refresh-btn svg {
    width: 14px;
    height: 14px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.video-card {
    background: #1a1a28;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s;
}
.video-card:hover {
    transform: translateY(-2px);
}
.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #444;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255,60,130,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 2;
}
.play-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
    margin-left: 2px;
}
.video-card:hover .play-icon {
    opacity: 1;
    visibility: visible;
}
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}
.video-info {
    padding: 10px;
}
.video-name {
    font-size: 12px;
    color: #eee;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-data {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #aaa;
}
.view-item {
    display: flex;
    align-items: center;
    gap: 3px;
}
.view-item svg {
    width: 12px;
    height: 12px;
}
.view-item span {
    color: #ff6699;
}

/* ============================================
   Single Video Page
   ============================================ */
.download-btn {
    background: linear-gradient(90deg, #f048c8, #c238e8);
    border: none;
    color: white;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
    font-family: inherit;
}
.download-btn:hover {
    opacity: 0.85;
}
.download-btn svg {
    width: 14px;
    height: 14px;
}

.player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a28;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    display: block;
    color: inherit;
    text-decoration: none;
    border: none;
    padding: 0;
    font-family: inherit;
}
.player-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.player-wrap:hover::before {
    opacity: 0;
}
.player-wrap .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255,60,130,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 1;
    visibility: visible;
}
.player-wrap .play-icon svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}
.player-wrap:hover .play-icon {
    background: rgba(255,60,130,1);
}
.player-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 6px;
    z-index: 3;
}

/* Video Info */
.video-info {
    margin-bottom: 24px;
}
.video-info h1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}
.video-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #aaa;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.meta-item svg {
    width: 14px;
    height: 14px;
}
.meta-item span {
    color: #ff6699;
}

/* Promo Card */
.promo-card {
    width: 100%;
    background: linear-gradient(90deg, #142036, #201838);
    border-radius: 16px;
    padding: 24px 22px;
    border: 1px solid rgba(120, 160, 255, 0.12);
    margin-top: 24px;
    margin-bottom: 16px;
}
.promo-tag {
    font-size: 14px;
    color: #70d8ff;
    margin-bottom: 10px;
}
.promo-title {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.promo-desc {
    font-size: 14px;
    color: #c2c8e0;
    line-height: 1.5;
    margin-bottom: 18px;
}
.promo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 0;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #50d0ff, #b84aff, #ff4fc8);
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s;
    font-family: inherit;
}
.promo-btn:hover {
    opacity: 0.92;
}
.promo-btn svg {
    width: 16px;
    height: 16px;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 0 10px;
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 11px;
    cursor: pointer;
    padding: 6px 16px;
    transition: color 0.2s;
    font-family: inherit;
}
.action-btn svg {
    width: 22px;
    height: 22px;
}
.action-btn:hover {
    color: #fff;
}

/* ============================================
   Bottom Fixed Button
   ============================================ */
.bottom-fix-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    width: min(640px, calc(100% - 40px));
    z-index: 50;
}

/* ============================================
   Page Template
   ============================================ */
.page-content {
    background: rgba(45,40,65,0.55);
    border-radius: 14px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.08);
}
.page-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}
.page-body {
    font-size: 14px;
    color: #ccd;
    line-height: 1.8;
}
.page-body p {
    margin-bottom: 1em;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    text-align: center;
    padding: 30px 0 10px;
    font-size: 12px;
    color: #555;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 14px;
}

/* ============================================
   Membership Modal
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    position: relative;
    background: linear-gradient(145deg, #1e1a30, #2a1a3a);
    border-radius: 20px;
    padding: 40px 30px 30px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.modal-close svg {
    width: 16px;
    height: 16px;
}
.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #f048c8, #c238e8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}
.modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}
.modal-desc {
    font-size: 13px;
    color: #bbbbcc;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Plan Card */
.modal-plans {
    margin-bottom: 20px;
}
.plan-card {
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.plan-card.plan-featured {
    border-color: rgba(240,72,200,0.4);
    background: rgba(240,72,200,0.08);
}
.plan-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.plan-price {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 18px;
}
.plan-price span {
    font-size: 14px;
    font-weight: normal;
    color: #888;
}
.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}
.plan-features li {
    font-size: 13px;
    color: #bbb;
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
}
.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48d868;
    font-weight: bold;
}
.plan-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f048c8, #c238e8);
    color: white;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.plan-btn:hover {
    opacity: 0.9;
    color: white;
}
.modal-footer-text {
    font-size: 13px;
    color: #888;
}
.modal-footer-text a {
    color: #f048c8;
    text-decoration: none;
}
.modal-footer-text a:hover {
    text-decoration: underline;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
    body {
        padding: 16px 12px 100px;
    }
    .card-title {
        font-size: 24px;
    }
    .logo-text {
        font-size: 20px;
    }
    .btn-row-top {
        grid-template-columns: 1fr;
    }
    .video-grid {
        gap: 10px;
    }
    .modal-box {
        padding: 30px 20px 24px;
    }
    .plan-price {
        font-size: 28px;
    }
}
