/* dat 2012 YT look cause yknow */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg-warm: #e9e6e0;
    --linen-top: rgba(255,255,255,0.02);
    --header-start: #2b2b2b;
    --header-end: #1b1b1b;
    --header-border: rgba(0,0,0,0.6);
    --sidebar-top: #f6f3ee;
    --sidebar-bottom: #efe8df;
    --muted: #6b6b6b;
    --accent-red: #00cc66;
    --card-border: #dfd0bf;
    --shadow-strong: 0 6px 18px rgba(0,0,0,0.18);
    --shadow-soft: 0 3px 8px rgba(0,0,0,0.08);
    --glass: rgba(255, 255, 255, 0.836);

    /* Button-specific variables */
    --btn-start: #fbf7ef;
    --btn-end: #eadfcb;
    --btn-border: #c6b49b;
    --btn-text: #3b2f25;
    --btn-shadow: rgba(0,0,0,0.12);
}


html,body{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

/* Smooth transitions for interactive elements */
a,button,input{ transition: all 150ms cubic-bezier(.2,.9,.2,1); }

body {
    font-family: 'Helvetica Neue', sans-serif;
    background: var(--bg-warm);
    color: #333;
    line-height: 1.4;
    /* linen texture using subtle repeating gradient */
    background-image: linear-gradient(90deg, var(--linen-top) 0.5px, transparent 0.5px), linear-gradient(var(--linen-top) 0.5px, transparent 0.5px);
    background-size: 6px 6px, 6px 6px;
}

.youtube-layout {
    background: #E8E8E8;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.youtube-header {
    background: linear-gradient(to bottom, var(--header-start), var(--header-end));
    border-bottom: 1px solid var(--header-border);
    height: 50px;
    position: relative;
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.02), 0 2px 8px rgba(0,0,0,0.25);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section { margin-right: 12px; }
.youtube-logo { display: flex; align-items: center; }

.site-logo {
    height: 30px;
    width: auto;
    display: block;
}

.search-bar {
    display: none !important; /* search bar removed per user request */
    flex: 0 0 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.search-input {
    flex: 1;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #c7bfb4;
    border-radius: 5px 0 0 5px;
    font-size: 13px;
    background: linear-gradient(to bottom, #ffffff, #f5f1ea);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
}

.search-input:focus {
    outline: none;
    border-color: #999999;
}

.search-button {
    width: 48px;
    height: 36px;
    margin-left: -1px;
    padding: 0;
    border: 1px solid var(--btn-border);
    border-radius: 0 6px 6px 0;
    background: linear-gradient(to bottom, var(--btn-start), var(--btn-end));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 6px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.search-button::after{
    /* subtle glossy band */
    content: '';
    position: absolute;
    left: -10%;
    top: -40%;
    width: 120%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.18), rgba(255,255,255,0) 45%);
    transform: rotate(-12deg);
    pointer-events: none;
}

.search-button:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 10px 18px rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.24);
}

.header-nav { display:flex; gap:10px; margin-right:12px; align-items:center; }
.nav-link, .about-link { color:#ffffff; text-decoration:none; font-size:13px; font-weight:bolder; padding:8px 12px; border-radius:8px; background: linear-gradient(to bottom, rgba(110, 110, 110, 0), rgba(0, 0, 0, 0.527), rgba(255,255,255,0.01)); border: 1px solid rgba(0,0,0,0.18); box-shadow: 0 6px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.04); }
.nav-link:hover{ background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0, 0, 0, 0.02)); color:#fff; box-shadow: 0 10px 20px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06); }
.about-link { margin:0 8px; }
.nav-link:active, .about-link:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(0,0,0,0.12); }

.user-section { display:flex; align-items:center; gap:8px; }
.username { font-size:13px; color:#fff; font-weight:500; padding:6px 8px; border-radius:4px; }
.notification-badge { background:#00cc88; color:white; border-radius:50%; width:18px; height:18px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:bold; }
.notification-badge{ box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 4px rgba(0,0,0,0.2); border: 1px solid rgba(0,0,0,0.16); }

/* Generic skeuomorphic button */
.btn{ display:inline-flex; align-items:center; justify-content:center; padding:8px 14px; min-height:36px; background: linear-gradient(to bottom, var(--btn-start), var(--btn-end)); border:1px solid var(--btn-border); color:var(--btn-text); border-radius:10px; box-shadow: 0 6px 14px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255, 255, 255, 0); font-weight:bolder; position:relative; overflow:hidden; }
.btn::before{
    /* thin top gloss */
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 6%;
    height: 38%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.03));
    border-radius: 0px;
    pointer-events:none;
}
.btn:focus{ outline: none; box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 0 0 3px rgba(0,204,102,0.06); }
.btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.72); }
.btn:active{ transform: translateY(1px); box-shadow: 0 4px 6px rgba(0,0,0,0.12), inset 0 1px 0 rgba(0,0,0,0.06); }
.dropdown-arrow { color:#666; font-size:10px; margin-left:4px; }

/* Main Content */
.main-content { display:flex; max-width:1010px; margin:0 auto; background:rgba(192, 157, 157, 0); min-height:calc(100vh - 48px); }

/* Sidebar */
.youtube-sidebar {
    width:220px;
    background: linear-gradient(to bottom, #272727, #000000);
    padding:8px 10px 16px 10px;
    position:relative;
    overflow:visible;
    border-top-left-radius:0;
    border-bottom-left-radius:0;
    border-right: 1px solid rgba(255,255,255,0.03);
    box-shadow: none;
}

.sidebar-content { 
    padding: 0; 
    position: relative; 
}

.sidebar-category {
    display: block;
    padding: 6px 8px;
    margin: 8px 0 10px 0;
    color: #ffffff;
    font-size: 10px;
    font-weight: bolder;
    text-transform: uppercase;
    background: transparent;
    border: none;
    border-radius: 2px;
    box-shadow: none;
    letter-spacing: 0.6px;
}

/* Remove old header/title styles as they're not needed */

.sidebar-menu { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.sidebar-link { 
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    background: #262626; /* flatter dark row */
    border: 1px solid rgba(255,255,255,0.02);
    gap: 11px;
    border-radius: 7px;
    margin: 8px 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); /* soft top highlight */
}

.sidebar-link:hover { 
    background: #2f2f2f; /* subtle lightening */
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 1px 0 rgba(0,0,0,0.4);
}

.sidebar-link.active {
    color: var(--accent-red);
    background: #2b2b2b; /* slightly different base when active */
    border-left: 4px solid var(--accent-red);
    padding-left: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.sidebar-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #cfcfcf;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
    opacity: 1;
}

.subscriptions-list { list-style:none; }
.subscription-item { display:flex; align-items:center; padding:6px 12px; gap:8px; margin:4px 0; }
.subscription-item:hover { background: rgba(255,255,255,0.02); }

.channel-avatar { width:28px; height:28px; border-radius:50%; background: #444; display:flex; align-items:center; justify-content:center; font-size:12px; border: 1px solid rgba(0,0,0,0.2); }
.channel-name { flex:1; font-size:13px; color:#cfcfcf; }

/* Main area rounding and spacing */
.youtube-main { 
    flex: 1;
    background: #ffffff;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

.video-feed { display:flex; flex-direction:column; gap:0; }
.video-item { display:flex; gap:16px; padding:14px; border:1px solid var(--card-border); background: linear-gradient(to bottom, #fffdfa, #f6efdf); margin-bottom:14px; border-radius:6px; box-shadow: 0 2px 6px rgba(0,0,0,0.06) inset, 0 6px 18px rgba(0,0,0,0.08); }
.video-info-left { display:flex; flex-direction:column; align-items:center; gap:8px; width:110px; flex-shrink:0; }

.channel-avatar-small { width:34px; height:34px; border-radius:50%; background:#ddd; display:flex; align-items:center; justify-content:center; font-size:14px; }
.channel-info { text-align:center; }
.channel-name { font-size:12px; font-weight:600; color:#333; margin-bottom:2px; }
.upload-info { font-size:11px; color:#666; }

.video-content { display:flex; gap:16px; flex:1; }
.video-thumbnail { width:180px; height:108px; background: linear-gradient(to bottom, #cfc3b2, #b9a58f); border-radius:4px; position:relative; display:flex; align-items:center; justify-content:center; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }

/* Hover lift for cards */
.video-item:hover{ transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.play-button-overlay { font-size:2rem; color:white; }
.video-duration { position:absolute; bottom:4px; right:4px; background:rgba(0,0,0,0.8); color:white; padding:2px 6px; border-radius:2px; font-size:11px; }

.video-title { font-size:15px; font-weight:600; color:#333; margin-bottom:6px; line-height:1.3; }
.video-title:hover { color:#cc0000; }
.video-stats { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.views { color:#666; font-size:11px; }
.hd-badge { background:#666; color:white; padding:2px 6px; border-radius:2px; font-size:10px; }
.video-description { color:#666; font-size:11px; line-height:1.3; }

/* Responsive */
@media (max-width:768px) {
    .main-content { flex-direction:column; }
    .youtube-sidebar { width:100%; border-bottom:1px solid #d0d0d0; border-radius:0; }
    .video-item { flex-direction:column; gap:12px; }
    .video-info-left { flex-direction:row; width:100%; justify-content:flex-start; }
    .video-content { flex-direction:column; }
    .video-thumbnail { width:100%; height:200px; }
    .header-content { flex-direction:column; gap:12px; height:auto; padding:10px 16px; }
    .search-bar { margin:0; max-width:none; }
}

@media (max-width:480px) {
    .header-content { padding:10px 12px; }
    .youtube-main { padding:12px; }
    .video-thumbnail { height:150px; }
    .video-title { font-size:14px; }
}

.video-title:hover {
    color: #00cc5c;
    cursor: pointer;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.views {
    color: #666;
        font-size: 11px;
}

.hd-badge {
    background: #666;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.video-description {
    color: #666;
        font-size: 11px;
        line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .youtube-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #d0d0d0;
    }
    
    .video-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .video-info-left {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
    }
    
    .video-content {
        flex-direction: column;
    }
    
    .video-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        height: auto;
        padding: 10px 20px;
    }
    
    .search-bar {
        margin: 0;
        max-width: none;
        border-radius: 5px;
    }
}

@media (max-width: 480px) {
    .youtube-layout {
        padding: 0;
    }
    
    .header-content {
        padding: 10px 15px;
    }
    
    .youtube-main {
        padding: 15px;
    }
    
    .video-thumbnail {
        height: 150px;
    }
    
    .video-title {
        font-size: 14px;
    }
}

/* About Me Section */
.about-sidebar-connector {
    display: flex;
    align-items: flex-start;
}

.about-me-section {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 24px 24px 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    max-width: 100%;
}

.about-me-section h2 {
    font-size: 22px;
    color: #222;
    margin-bottom: 0;
    padding-bottom: 0;
    font-weight: bold;
    min-width: 120px;
    text-align: left;
}

.about-content {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    padding-left: 12px;
    flex: 1;
    min-width: 200px;
    max-width: 100%;
}

.interests {
    margin-top: 15px;
}

.interests h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.interests ul {
    list-style: none;
    padding-left: 0;
}

.interests li {
    font-size: 13px;
    color: #666;
    padding: 4px 0;
    position: relative;
    padding-left: 16px;
}

.interests li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00cc6d;
}

/* Stronger skeuomorphic treatment for sidebar buttons */
.sidebar-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bolder;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(to bottom, rgba(110, 110, 110, 0), rgba(0, 0, 0, 0.527), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-link::before{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50%;
    border-radius: 2px;
    pointer-events:none;
}

.sidebar-link .sidebar-icon{
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 1px 2px rgba(0,0,0,0.5);
    color: #e6e6e6;
}

.sidebar-link:hover{ background:#2f2f2f; }

.sidebar-link.active{ background:#2b2b2b; }

/* Frequency styles */
.frequency-frame {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 4px;
    background: transparent;
}

.frequency-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #3a3a3a, #1a1a1a);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.frequency-vertical {
    position: absolute;
    top: -98px; /* extend above the line */
    height: 200px; /* make the bar much taller */
    width: auto; /* maintain PNG aspect ratio */
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
    pointer-events: auto;
    user-select: none;
}

.frequency-controls {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    z-index: 999;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: transparent;
    padding: 6px 8px;
}

.frequency-controls .nav-link {
    padding: 8px 14px;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bolder;
    border-radius: 8px;
    background: linear-gradient(to bottom, rgba(110, 110, 110, 0), rgba(0, 0, 0, 0.527), rgba(255,255,255,0.01));
    border: 1px solid rgba(0,0,0,0.18);
    box-shadow: 0 6px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}

.frequency-controls .nav-link:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0, 0, 0, 0.02));
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}

.frequency-controls .nav-link:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.12);
}