/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #021152 0%, #1a2980 50%, #021152 100%);
    background: black;
    min-height: 100vh;
    color: #141414;
}

.hidden {
    display: none !important;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #021152 0%, #1a2980 100%);
    box-shadow: 0 2px 20px rgba(2, 17, 82, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    height: 60px;
    border-bottom: 1px solid rgba(228, 222, 206, 0.2);
}

.header-left .logo h1 {
    color: #E4DECE;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-center {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-bar {
    display: flex;
    border: 1px solid rgba(228, 222, 206, 0.3);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(228, 222, 206, 0.1);
    backdrop-filter: blur(10px);
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #E4DECE;
}

.search-bar input::placeholder {
    color: rgba(228, 222, 206, 0.7);
}

.search-btn {
    background: rgba(228, 222, 206, 0.2);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    color: #E4DECE;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(228, 222, 206, 0.3);
}

.menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    color: #E4DECE;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(228, 222, 206, 0.2);
}

/* Main Container */
.main-container {
    margin-top: 60px;
    padding: 20px;
}

/* Home Page Styles */
.tideo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tideo-card {
    background: rgba(228, 222, 206, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 17, 82, 0.2);
    border: 1px solid rgba(228, 222, 206, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tideo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(2, 17, 82, 0.3);
    background: rgba(228, 222, 206, 0.2);
}

.tideo-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tideo-card-info {
    padding: 15px;
}

.tideo-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(2, 17, 82, 0.1);
}

.tideo-card-date {
    color: #eded08;
    font-size: 14px;
    opacity: 0.8;
}

/* Tideo Page Styles */
.tideo-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* iojpofjaopdj */
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}



.back-btn {
    background: linear-gradient(135deg, #021152 0%, #1a2980 100%);
    color: #E4DECE;
    border: none;
    padding: 10px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    margin-top: 19px;
    box-shadow: 0 5px 15px rgba(2, 17, 82, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 17, 82, 0.4);
}

.back-btn .material-icons {
  vertical-align: middle;
  font-size: 18px; /* Adjust as needed */
}
.tideo-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

.tideo-main {
    background: rgba(228, 222, 206, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(2, 17, 82, 0.2);
    border: 1px solid rgba(228, 222, 206, 0.3);
}

.tideo-player {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #021152 0%, #1a2980 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-tideo-img {
    /* width: 100%; */
    height: 100%;
    object-fit: cover;
}

.tideo-info {
    padding: 20px;
}

.tideo-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #fcfdff;
    text-shadow: 0 1px 2px rgba(2, 17, 82, 0.1);
}

.tideo-meta {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(228, 222, 206, 0.966);
}

.tideo-date {
    color: #ffff4d;
    font-size: 14px;
    opacity: 0.8;
}

.tideo-description {
    color: #f2d9d9;
    line-height: 1.6;
    font-size: 15px;
    opacity: 0.9;
}

/* Sidebar Styles */
.tideo-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #f1f0ff;
    text-shadow: 0 1px 2px rgba(199, 202, 218, 0.1);
}

.related-tideos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-tideo {
    display: flex;
    background: rgb(160, 116, 138);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 8px;
    box-shadow: 0 10px 20px rgba(2, 17, 82, 0.1);
    border: 1px solid rgba(228, 222, 206, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-tideo:hover {
    transform: translateX(4px);
    background: rgba(216, 211, 197, 0.99);
    box-shadow: 0 15px 25px rgba(2, 17, 82, 0.2);
    
}

.related-tideo-thumb {
    width: 120px;
    height: 68px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-tideo-info {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-tideo-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    color: #000311;
}

.related-tideo-date {
    color: #141414;
    font-size: 12px;
    opacity: 0.8;
    padding-bottom: 8pxpx;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 10px;
    }
    
    .header-left .logo h1 {
        font-size: 20px;
    }
    
    .main-container {
        padding: 15px;
    }
    
    .tideo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tideo-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tideo-player {
        height: 250px;
    }
    
    .tideo-title {
        font-size: 20px;
    }
    
    /* .tideo-sidebar {
        order: -1;
    } */
    
    .related-tideo-thumb {
        width: 100px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .header-center {
    margin: 0 10px;
    width: 20%;           /* Allows it to adapt inside a container */
    max-width: 600px;      /* Limits the maximum width */
    box-sizing: border-box; /* Ensures padding/margin don’t overflow */
}

    
    .search-bar input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .tideo-card-info {
        padding: 12px;
    }
    
    .tideo-info {
        padding: 15px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 50px;
    color: #E4DECE;
    font-size: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Smooth Transitions */
.tideo-card, .related-tideo, .back-btn {
    transition: all 0.2s ease;
}

/* Focus Styles for Accessibility */
button:focus, input:focus {
    outline: 2px solid #E4DECE;
    outline-offset: 2px;
}