/* 
 * TiniPorn - Modern Dutch Adult Video Site
 * A responsive, mobile-first design with light/dark mode
 */

:root {
    /* Light mode colors (default) */
    --primary-color: #ff6600; /* Dutch orange */
    --primary-light: #ff8533;
    --primary-dark: #cc5200;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --nav-bg: #ffffff;
    --footer-bg: #343a40;
    --footer-text: #f8f9fa;
    --player-bg: #000000;
    --player-controls: rgba(0, 0, 0, 0.7);
    --player-progress: #ff6600;
    --player-buffer: rgba(255, 102, 0, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Dark mode colors */
[data-theme="dark"] {
    --primary-color: #ff6600; /* Keep orange as primary */
    --primary-light: #ff8533;
    --primary-dark: #cc5200;
    --secondary-color: #adb5bd;
    --background-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #f8f9fa;
    --text-secondary: #adb5bd;
    --border-color: #343a40;
    --nav-bg: #1e1e1e;
    --footer-bg: #1e1e1e;
    --footer-text: #f8f9fa;
    --player-bg: #000000;
    --player-controls: rgba(30, 30, 30, 0.9);
    --player-progress: #ff6600;
    --player-buffer: rgba(255, 102, 0, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Header */
header {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo_image {
    width: 156px;
    height: 44px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url('/static/nieuwporno_logo.png');
}

.nav-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-left: auto;
    margin-right: 1rem;
}

.main-nav {
    flex: 1 0 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.main-nav.active {
    max-height: 300px;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.main-nav li {
    margin-bottom: 0.5rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.search-container {
    flex: 1 0 100%;
    margin: 0.75rem 0;
}

.search-container form {
    display: flex;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
}

.search-container button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0 50px 50px 0;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: var(--primary-dark);
}

.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: auto;
    font-size: 1.25rem;
    color: var(--text-color);
}

.theme-toggle i {
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: 0.5rem;
}

.theme-toggle i:hover {
    color: var(--primary-color);
}

#lightIcon {
    display: none;
}

[data-theme="dark"] #darkIcon {
    display: none;
}

[data-theme="dark"] #lightIcon {
    display: block;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .main-nav {
        flex: 1 1 auto;
        max-height: none;
        margin-left: 2rem;
    }
    
    .main-nav ul {
        flex-direction: row;
        padding: 0;
    }
    
    .main-nav li {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
    
    .search-container {
        flex: 0 1 300px;
        margin: 0 1rem;
    }
}

/* Sub-header */
.sub-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.partner-sites {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.partner-sites a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.partner-sites a:hover {
    color: var(--primary-color);
}

/* Main content */
main {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Category cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.05);
}

.card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-weight: 500;
}

.card-title span {
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (min-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Video cards */
.video-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.video-card .card-image {
    position: relative;
}

.duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 102, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-icon {
    opacity: 1;
}

.card-info {
    padding: 1rem;
}

.card-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
}

.meta-info {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.views, .rating {
    display: flex;
    align-items: center;
}

.views i, .rating i {
    margin-right: 0.25rem;
}

.views {
    margin-right: 1rem;
}

@media (min-width: 576px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Video page specific styles */
.video-page .container {
    display: flex;
    flex-direction: column;
}

.video-content {
    margin-bottom: 2rem;
}

.video-player-container {
    position: relative;
    background-color: var(--player-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
}

.player-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.player-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 102, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: var(--primary-color);
}

.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--player-controls);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-left, .control-right {
    display: flex;
    align-items: center;
}

.control-left {
    gap: 1rem;
}

.control-right {
    margin-left: auto;
    gap: 1rem;
}

.play-pause, .volume-button, .quality-selector, .fullscreen {
    color: white;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.play-pause:hover, .volume-button:hover, .quality-selector:hover, .fullscreen:hover {
    color: var(--primary-color);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
}

.volume-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 70%;
    background-color: white;
    border-radius: 2px;
}

.time-display {
    color: white;
    font-size: 0.85rem;
}

.progress-bar {
    position: relative;
    height: 4px;
    width: 100%;
    cursor: pointer;
}

.progress-background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.progress-buffered {
    position: absolute;
    left: 0;
    top: 0;
    width: 80%;
    height: 100%;
    background-color: var(--player-buffer);
    border-radius: 2px;
}

.progress-current {
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background-color: var(--player-progress);
    border-radius: 2px;
}

.progress-handle {
    position: absolute;
    left: 30%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: none;
}

.progress-bar:hover .progress-handle {
    display: block;
}

.video-info {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.like-btn, .dislike-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.like-btn:hover, .dislike-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.video-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.video-tags span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: 50px;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.video-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.video-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.video-duration i {
    color: var(--primary-color);
}

.video-description {
    color: var(--text-color);
    font-size: 0.95rem;
}

.live-chat-ad {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.ad-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.distance {
    font-size: 0.85rem;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.ad-content {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.ad-image {
    flex: 0 0 100px;
}

.ad-image img {
    border-radius: 4px;
}

.ad-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.ad-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.ad-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.ad-button:hover {
    background-color: var(--primary-dark);
}

.ad-disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.related-videos h2 {
    margin-bottom: 1.5rem;
}

/* Related Videos Section */
.related-videos-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.related-videos-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-videos-section h2 i {
    color: var(--primary-color);
}

.related-videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.related-videos-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.related-video-item {
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.related-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-video-item:hover .related-video-thumb img {
    transform: scale(1.05);
}

.related-video-thumb .duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 102, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-video-item:hover .play-overlay {
    opacity: 1;
}

.related-video-info {
    padding: 0.75rem;
}

.related-video-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-stats {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.video-stats .views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-stats i {
    font-size: 0.75rem;
}

@media (min-width: 576px) {
    .related-videos-column {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .related-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .related-videos-column {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .related-videos-column {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .video-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .meta-right {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .video-page .container {
        flex-direction: row;
        gap: 2rem;
    }
    
    .video-content {
        flex: 1;
        margin-bottom: 0;
    }
    
    .related-videos {
        flex: 0 0 300px;
    }
    
    .related-videos .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--footer-text);
    margin-bottom: 1rem;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    border-radius: 50%;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.disclaimer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-logo {
        flex: 0 0 30%;
    }
    
    .footer-links {
        flex: 0 0 65%;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 4px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination .active {
    background-color: var(--primary-color);
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Category sections */
.category-section {
    margin-bottom: 2rem;
}

.category-section h3 {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.tag-list a {
    color: var(--text-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

.tag-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Additional styles for PHP integration */
.thumbnail {
    width: 100%;
    position: relative;
}

.thumbnail_inner {
    margin: 0.25rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail_inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.thumbnail_image_holder {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.thumbnail_image_holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail_inner:hover .thumbnail_image_holder img {
    transform: scale(1.05);
}

.thumbnail_video_length {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white !important;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.thumbnail_title {
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    max-height: none;
}

.vidinfo {
    height: auto;
    padding: 0 0.75rem 0.75rem;
}

.timestamp {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.category_thumbnail_title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-weight: 500;
    text-align: center;
}
