:root {
    --ut-orange: #FF8200;
    --ut-smokey: #58595B; 
    --ut-light-grey: #F6F6F6;
    --text-main: #333333;
    --border: #E0E0E0;
    --light-bg: #F9F7F2;
        --slate: #333d47;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: white; /* #fffaed; */
    margin: 0;
}

.video-page-container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 20px; */
    margin-bottom: 7rem;
}

.video-header-details {
    background: linear-gradient(160deg, #333d47 0%, #5c666f 100%);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.video-header-details::after {
    background-image: url('https://utia-dev.tennessee.edu/wp-content/themes/UTIA_WP_Child_Theme/assets/images/circles-black.png');
    /* background-position: right; */
    opacity: 0.25;
}

.header-content {
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
     padding: 20px;
}

/* Header & Breadcrumb */
.breadcrumb-video-detail-page {
    font-size: 0.8rem;
    color: white;
    margin-bottom: 10px;
}
/* .breadcrumb strong { color: var(--ut-orange); } */

h1 { font-size: 2rem; color: white; margin: 0 0 15px 0; }
span.video-playlist-subtitle {
    font-size: 2rem;
    color: #ffffff;
}

h2 {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 0;
    margin-top: 0.63em;
}

p {
margin: 0 0 1rem;
}

.meta-row {
    display: flex;
    gap: 25px;
    padding-bottom: 50px;
    /* border-bottom: 1px solid var(--border); */
    /* margin-bottom: 25px; */
    font-size: 0.9rem;
    color: white;
}

/* Main Layout Grid */
.main-layout {
    display: flex;
    flex-direction: column; /* Stack for Mobile */
    gap: 30px;
    margin-top: -30px;
}

@media (min-width: 992px) {
    .main-layout { flex-direction: row; }
    .video-column.playlist { flex: 2; }
    .video-column.video { flex: 3; }
    .sidebar-column { flex: 1; min-width: 350px; min-height: fit-content;}
}

/* Video Player */
.video-player-box {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: #000;
    box-shadow: 0 0px 20px rgba(0,0,0,0.5);
    border: 3px solid var(--ut-orange);
    border-radius: 5px;
}

.video-player-box iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.description-box {
    margin-bottom: 1rem;
}

/* Description & Tags */
.description-box h3 { border-left: 4px solid var(--ut-orange); padding-left: 10px; margin-top: 30px; }
.tag { background: var(--ut-light-grey); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: #555; margin-right: 5px; cursor: pointer; border: 1px solid var(--ut-orange); }
.tag:hover { background: var(--ut-smokey); color: white; }

.sidebar-column {
    z-index: 1;
    border-radius: 4px;
}

/* Sidebar Styling */
.sidebar-card { background: white; padding: 20px; border-radius: 4px; margin-bottom: 25px; border-top: 4px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.5);}
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.sidebar-card h3 { margin: 0; font-size: 1.1rem; }

.playlist-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: white;
    margin-bottom: 8px;
    border-radius: 4px;
    transition: 0.2s;
    cursor: pointer;
}
.playlist-item.active { border-left: 4px solid var(--ut-orange); background: #fffcf5; }
.playlist-item:hover { transform: translateX(5px); }

.mini-thumb { width: 80px; height: 50px; object-fit: cover; border-radius: 2px; }
.playing-now { font-size: 0.7rem; color: var(--ut-orange); font-weight: bold; margin: 0; }
.video-title { font-size: 0.85rem; font-weight: bold; margin: 0; }

.avatar { width: 70px; height: 70px; border-radius: 25%; border: 2px solid var(--ut-orange); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.speaker-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.speaker-meta strong { display: block; font-size: 0.9rem; }
.speaker-meta span { font-size: 0.8rem; color: #666; }

/* Related Video Grid */
.section-title { margin: 50px 0 20px 0; font-size: 1.5rem; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.video-card { border: 1px solid var(--border); transition: 0.3s; border-radius: 10px; background: var(--slate); color: white; }
.video-card:hover { border-color: var(--ut-orange); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.card-thumb { height: 240px; background-size: cover; background-position: center; position: relative; border-radius: 10px 10px 0px 0px;}
.card-info { padding: 15px; }
.card-info p { margin: 0; font-weight: bold; font-size: 0.9rem; }
.card-meta { font-size: 0.75rem; color: white; }
.play-btn { position: absolute; bottom: 10px; right: 10px; background: var(--ut-orange); color: white; padding: 4px 10px; font-size: 1.2rem; border-radius: 3px; }

/* Playlist Scroll Container */
.playlist-scroll {
    max-height: 260px; /* Calculated: ~80px per item + gaps */
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

/* Custom Scrollbar Styling (Webkit) */
.playlist-scroll::-webkit-scrollbar {
    width: 6px;
}

.playlist-scroll::-webkit-scrollbar-track {
    background: #eeeeee;
    border-radius: 10px;
}

.playlist-scroll::-webkit-scrollbar-thumb {
    background: var(--ut-orange); /* Tennessee Orange Thumb */
    border-radius: 10px;
}

.playlist-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--ut-smokey);
}

/* Updated Playlist Item Styles */
.playlist-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: white;
    margin-bottom: 10px; /* Gap between items */
    border-radius: 4px;
    transition: 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid var(--border);
}

.playlist-item:hover {
    background: #fdfdfd;
    border-color: var(--ut-orange);
}

.playlist-item.active {
    background: #fff8f0;
    border-left: 4px solid var(--ut-orange);
}

.mini-thumb {
    width: 90px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.item-info {
    overflow: hidden; /* Prevent text from breaking layout */
}

.video-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Truncate after 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

h3.individual-video-title {
    font-size: 28px;
}

.duration {
    font-size: 0.75rem;
    color: #888;
}


.video-header-details {
    /* 1. Full-width breakout logic */
    width: 100vw;
    position: relative;
    
    /* 2. Modern Image Background with Overlay */
    background: linear-gradient(160deg, #333d47 50%, #5c666f 100%),
    url('https://utia-dev.tennessee.edu/wp-content/themes/UTIA_WP_Child_Theme/assets/images/circles-black.png'); 
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    
    /* 3. Spacing and Polish */
    padding:  0;
    color: #ffffff;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.3);
}

.header-content {
    max-width: 1400px;
    width: 90%; 
    margin: 0 auto;
}

/* 4. Breadcrumb (Small & Elegant) */
.breadcrumb {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.breadcrumb strong {
    /* color: #fbbf24; */
}

/* 5. Headline (Strong & Clear) */
.header-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    margin-top: 25px;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Essential for readability over images */
}

/* 6. Meta-row (Clean Grid) */
.meta-row {
    display: flex;
    flex-wrap: wrap; /* Fix for mobile screens */
    gap: 15px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    padding-top: 20px;
}

.meta-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-row strong {
    font-weight: 500;
    /* color: #9ca3af; */
}