/* video_style.css */
:root {
    /* Reusing variables from the previous theme for consistency */
    --bg-color: #0a0a0a;
    --panel-bg: #1a1a1a;
    --metal-texture-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23222" d="M0 0h100v100H0z"/><path fill="%23333" d="M10 10h80v80H10z"/><path fill="%232a2a2a" d="M20 20h60v60H20z"/><path fill="%23444" d="M30 30h40v40H30z"/><path fill="%233a3a3a" d="M40 40h20v20H40z"/></svg>');
    --accent-red: #b00000;
    --accent-red-glow: rgba(176, 0, 0, 0.7);
    --text-light: #cccccc;
    --text-metal-title: #e0e0e0;
    --frame-border-color: #444444;
    --frame-inner-shadow: #111111;
    --rivet-color: #666666;
    --font-title: 'Metal Mania', cursive;
    --font-body: 'Exo 2', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: var(--metal-texture-url);
    background-blend-mode: overlay;
    background-color: rgba(10, 10, 10, 0.9); /* Slightly darker overlay */
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* Allow footer to push down */
    min-height: 100%;
}

.video-page-wrapper {
    flex: 1; /* Take available vertical space */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem; /* Padding top/bottom and sides */
    width: 100%;
    max-width: 1100px; /* Max width for the content area */
    margin: 0 auto; /* Center the wrapper */
}

.page-header {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.video-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--text-metal-title);
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 0px var(--bg-color), 3px 3px 6px var(--accent-red-glow);
    margin-bottom: 0.5rem; /* Space below title */
}

/* Optional Back Link Style
.back-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--text-light);
}
*/

.video-display-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-frame {
    width: 100%;
    max-width: 900px; /* Max width of the video frame */
    background: linear-gradient(145deg, #333, #1a1a1a); /* Dark gradient bg */
    padding: 15px; /* Space between frame border and video */
    border: 5px solid var(--frame-border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7),
                inset 0 0 10px var(--frame-inner-shadow);
    position: relative; /* For positioning rivets */
    margin-bottom: 1rem; /* Space below the frame */
}

/* Rivets */
.rivet {
    width: 12px;
    height: 12px;
    background-color: var(--rivet-color);
    border-radius: 50%;
    position: absolute;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.8), 1px 1px 1px rgba(255,255,255,0.1);
}
.rivet-tl { top: 8px; left: 8px; }
.rivet-tr { top: 8px; right: 8px; }
.rivet-bl { bottom: 8px; left: 8px; }
.rivet-br { bottom: 8px; right: 8px; }


/* Responsive Video Container (Aspect Ratio Trick) */
.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--frame-inner-shadow); /* Inner border around video */
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Remove default iframe border */
}

.video-caption {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 0.5rem;
    text-align: center;
}

.page-footer {
    width: 100%;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem; /* Ensure space above footer */
    color: var(--text-light);
    font-size: 0.85rem;
    border-top: 1px solid var(--frame-border-color);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .video-page-wrapper {
        padding: 1.5rem 0.5rem;
    }
    .video-title {
        font-size: 2.5rem;
    }
    .video-frame {
        padding: 10px;
        border-width: 4px;
    }
    .rivet { width: 10px; height: 10px; }
    .rivet-tl { top: 5px; left: 5px; }
    .rivet-tr { top: 5px; right: 5px; }
    .rivet-bl { bottom: 5px; left: 5px; }
    .rivet-br { bottom: 5px; right: 5px; }

    .video-caption {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .video-title {
        font-size: 2rem;
    }
     .video-frame {
        padding: 8px;
        border-width: 3px;
    }
    .rivet { width: 8px; height: 8px; }
     .rivet-tl { top: 4px; left: 4px; }
    .rivet-tr { top: 4px; right: 4px; }
    .rivet-bl { bottom: 4px; left: 4px; }
    .rivet-br { bottom: 4px; right: 4px; }

    .video-caption {
        font-size: 0.8rem;
    }
    .page-footer {
        margin-top: 2rem;
        font-size: 0.8rem;
    }
}