/*
Theme Name: FrameXTV Custom Server Proxy Skin
Theme URI: https://framextv.cc/
Description: Custom Single-Page Media indexing theme skin equipped with backend database transients caches, automated midnight CRON flushing filters, and client sandbox iframe player views.
Version: 2.4
Author: System Architecture Engineer
Text Domain: framex-stream-theme
*/

body {
    background-color: #09090b !important;
    color: #f4f4f5 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.theme-site-header {
    background: #18181b;
    padding: 20px;
    border-bottom: 1px solid #27272a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-brand {
    font-size: 24px;
    font-weight: 800;
    color: #e11d48;
    letter-spacing: -0.5px;
}

.stream-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.category-tabs-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.cat-btn {
    background: #27272a;
    color: #a1a1aa;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cat-btn:hover, .cat-btn.active {
    background: #e11d48;
    color: #ffffff;
}

.search-bar-row input {
    width: 100%;
    max-width: 500px;
    background: #18181b;
    border: 1px solid #27272a;
    padding: 14px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 40px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.media-card-node {
    background: #18181b;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #27272a;
}

.media-card-node:hover {
    transform: scale(1.04);
    border-color: #e11d48;
}

.card-thumbnail-container {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-hover-play-pane {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    font-weight: bold;
    color: #fff;
    transition: opacity 0.2s ease;
}

.media-card-node:hover .card-hover-play-pane {
    opacity: 1;
}

.card-title-meta-label {
    padding: 15px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Shimmer Loading Elements CSS */
.skeleton-card {
    background: #18181b;
    border-radius: 8px;
    height: 360px;
    padding: 0;
    overflow: hidden;
}

.skeleton-thumb {
    height: 300px;
    background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
    background-size: 200% 100%;
    animation: skeleton-blink 1.5s infinite;
}

.skeleton-title {
    height: 16px;
    margin: 15px;
    background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
    background-size: 200% 100%;
    animation: skeleton-blink 1.5s infinite;
    width: 70%;
    border-radius: 4px;
}

@keyframes skeleton-blink {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.player-overlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(9,9,11,0.98);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay-close-trigger {
    color: #a1a1aa;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: bold;
}

.overlay-close-trigger:hover {
    color: #fff;
}

.player-content-wrapper {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid #27272a;
    border-radius: 8px;
    overflow: hidden;
}

#stream-sandbox-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.gate-login-prompt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}

.action-buttons-wrap {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.auth-btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
}

.btn-login { background: #e11d48; color: #fff; }
.btn-register { background: #27272a; color: #fff; }

.diagnostic-box {
    background: #1c1c1f;
    border: 1px solid #3f3f46;
    border-left: 4px solid #f59e0b;
    padding: 25px;
    border-radius: 4px;
    margin-top: 20px;
}

.diagnostic-box h3 { color: #f59e0b; margin-top: 0; }
.meta-trace { font-family: monospace; color: #a1a1aa; background: #09090b; padding: 8px; border-radius: 4px; }
.instructions-block { margin-top: 15px; font-size: 14px; line-height: 1.6; }

.theme-site-footer {
    text-align: center;
    padding: 40px;
    color: #71717a;
    border-top: 1px solid #27272a;
    font-size: 14px;
}
