body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f7f8fb;
    min-height: 100vh;
}

/* Home hero */
.home-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-hero-content {
    background: rgba(255,255,255,0.75);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 600px;
    width: 90%;
}

.home-hero-content h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: #333;
}

.home-hero-content p {
    margin: 0 0 25px;
    color: #555;
}

.google-search {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.google-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #fff;
}

.google-search button {
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.25s ease;
}

.google-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.45);
}

/* News page */
.news-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-header {
    text-align: center;
    margin-bottom: 20px;
}

.news-header h1 {
    margin: 10px 0 6px;
}

.news-header p {
    margin: 0;
    color: #555;
}

.news-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    gap: 36px;
    width: 100%;
    height: 100%;
    align-items: center;
}

.news-card {
    background: rgba(255,255,255,0.9);
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 180px;
    flex-shrink: 0;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.news-card-icon h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #1f2d3d;
}

.news-card h3 {
    margin: 0;
    color: #1f2d3d;
    font-size: 0.95rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-meta {
    font-size: 0.8rem;
    color: #667;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.news-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: white;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.news-excerpt {
    margin: 0;
    color: #444;
    line-height: 1.5;
    font-size: 0.85rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.news-button {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    transition: all 0.2s ease;
}

.news-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.45);
}

.news-full {
    margin: 8px 0 0;
    color: #333;
    line-height: 1.6;
    display: none;
}

.news-full.show {
    display: block;
}

/* Article Modal */
.article-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.article-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.article-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    gap: 15px;
}

.article-modal-header h2 {
    margin: 0;
    color: #1f2d3d;
    font-size: 1.6rem;
    flex: 1;
    line-height: 1.4;
}

.article-modal-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.article-modal-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-modal-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.article-modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.article-modal-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-modal-source {
    font-weight: 600;
    color: #667;
    font-size: 0.95rem;
}

.article-modal-topic {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 999px;
    font-size: 0.85rem;
}

.article-modal-body {
    color: #444;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Article Modal */
.article-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.article-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.article-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.article-modal-header h2 {
    margin: 0;
    color: #1f2d3d;
    font-size: 1.5rem;
    flex: 1;
}

.article-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-modal-close:hover {
    color: #333;
}

.article-modal-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-modal-source {
    font-weight: 600;
    color: #667;
}

.article-modal-topic {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 999px;
    font-size: 0.85rem;
}

.article-modal-body {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

/* News images */
.news-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #e3ecff 0%, #f5e8ff 100%);
    flex-shrink: 0;
}

.news-image-wrapper.icon-wrapper {
    max-width: 150px;
    margin: 0 auto;
}

/* News Page Layout */
body.news-page {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

.news-page .page-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    flex: 1;
    min-height: 0;
}

.news-page .page-wrapper > .container.news-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
}

.news-page .page-wrapper > .dock {
    flex-shrink: 0;
    margin-bottom: 20px;
}

.news-layout .news-header {
    flex-shrink: 0;
    margin-bottom: 8px;
}

.news-scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 450px;
    width: 100%;
    margin-top: 24px;
}

.news-scroll {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 0;
}

.news-scroll::-webkit-scrollbar {
    height: 6px;
}

.news-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.news-scroll::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 10px;
}

.news-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.news-scroll-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.news-scroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.45);
}

.news-scroll-btn:active {
    transform: scale(0.95);
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.icon-image {
    object-fit: contain;
    width: 100%;
    height: 100%;
    padding: 8px;
    background: white;
}

.page-wrapper {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.page-wrapper-visible {
    opacity: 1;
}

#change-bg-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background-color: rgba(31, 41, 55, 0.9);
    color: white;
    cursor: pointer;
    z-index: 1000;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
}

#change-bg-btn:hover {
    background-color: rgba(17, 24, 39, 0.95);
}

.dock {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(128, 128, 128, 0.7);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 20px;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    text-decoration: none;
    color: white;
}

.dock-item img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: white;
    margin-bottom: 5px;
    transition: transform 0.2s ease-in-out;
}

.dock-item:hover img {
    transform: scale(1.2);
}

.dock-item span {
    font-size: 14px;
}

.container {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    margin: 20px;
}

.news-article {
    margin-bottom: 20px;
}

/* New Calendar Styles */
#calendar-container {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

#calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

#calendar-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

#current-day-details {
    text-align: center;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

#current-day-details #current-day-of-week {
    font-size: 0.9em;
    font-weight: 600;
    margin: 0;
    color: #666;
    letter-spacing: 0.5px;
}

#current-day-details #current-day {
    font-size: 2.5em;
    margin: 0;
    line-height: 1;
    font-weight: 300;
    color: #000;
}

#month-year-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex: 1;
}

#month-year-header {
    font-size: 1.8em;
    text-align: right;
    margin: 0;
    font-weight: 400;
    color: #333;
    letter-spacing: 0.3px;
}

#year-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ededed 100%);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-left: auto;
}

#calendar-actions-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    gap: 10px;
}

#year-selector label {
    font-weight: 600;
    white-space: nowrap;
    color: #333;
    font-size: 0.95em;
    letter-spacing: 0.3px;
}

#year-dropdown {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    background-color: white;
    color: #333;
    min-width: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    padding-right: 36px;
}

#year-dropdown:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#year-dropdown:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

#calendar-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0;
}

#view-toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
}

.view-btn {
    padding: 10px 20px;
    background-color: #808080;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: #696969;
}

.view-btn.active {
    background-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn {
    padding: 10px 18px;
    background-color: #808080;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: #696969;
}

.nav-btn:active {
    transform: scale(0.98);
    background-color: #606060;
}

.calendar-view {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.calendar-view.hidden {
    display: none;
    opacity: 0;
}

#year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    animation: fadeIn 0.4s ease-out;
}

#year-view {
    width: 100%;
}

.mini-calendar {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px;
    transition: all 0.3s ease;
}

.mini-calendar:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mini-calendar-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 6px;
    color: #333;
}

.mini-days-of-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 4px;
}

.mini-days-of-week div {
    font-size: 0.6em;
    font-weight: 600;
    text-align: center;
    color: #999;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.mini-day {
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65em;
    border-radius: 3px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    color: #666;
}

.mini-day.other-month {
    color: #ddd;
    background-color: #fafafa;
}

.mini-day.current-day {
    background: linear-gradient(135deg, #ff9800 0%, #fb8c00 100%);
    color: white;
    font-weight: 600;
    border: none;
}

.mini-day.has-note {
    background: linear-gradient(135deg, #a5d6a7 0%, #81c784 100%);
    color: white;
    font-weight: 600;
    border: none;
}


/* Calendar Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#days-of-week, #calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

#calendar-grid.fade-in {
    animation: fadeIn 0.4s ease-out;
}

#days-of-week div {
    font-weight: 600;
    text-align: center;
    padding: 8px 5px;
    font-size: 0.9em;
    color: #555;
    letter-spacing: 0.5px;
}

#calendar-grid .day {
    background-color: #f5f5f5;
    padding: 18px 8px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    border: 1px solid #e8e8e8;
    position: relative;
}

#calendar-grid .day:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

#calendar-grid .day.other-month {
    color: #bbb;
    background-color: #fafafa;
    font-weight: 400;
}

.day-number {
    display: block;
}

.lunar-day {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 0.7em;
    color: #8B4513; /* nâu */
}

.lunar-day.lunar-special {
    color: #c62828;
    font-weight: 700;
}

#calendar-grid .day.other-month:hover {
    background-color: #f0f0f0;
}

#calendar-grid .day.current-day {
    background: linear-gradient(135deg, #ff9800 0%, #fb8c00 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    border: none;
}

#calendar-grid .day.current-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

#calendar-grid .day.has-note {
    background: linear-gradient(135deg, #a5d6a7 0%, #81c784 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(129, 199, 132, 0.3);
    border: none;
}

/* Responsive adjustments for laptop ~1366x768 */
@media (max-width: 1400px) {
    body {
        align-items: flex-start;
    }
    .container {
        width: 90%;
        max-width: 960px;
        padding: 16px;
        margin: 12px auto;
        max-height: none;
        overflow: visible;
    }
    #calendar-container {
        padding: 10px;
    }
    #calendar-header {
        gap: 12px;
        margin-bottom: 8px;
    }
    #current-day-details {
        width: 95px;
        height: 95px;
        border-width: 1.5px;
    }
    #current-day-details #current-day {
        font-size: 2.1em;
    }
    #current-day-details #current-day-of-week {
        font-size: 0.82em;
    }
    #month-year-header {
        font-size: 1.6em;
    }
    #year-selector {
        padding: 6px 10px;
        gap: 6px;
    }
    #year-dropdown {
        padding: 7px 10px;
        min-width: 88px;
        font-size: 0.9em;
    }
    #calendar-nav-buttons .nav-btn,
    #view-toggle-buttons .view-btn {
        padding: 7px 12px;
        font-size: 0.88em;
    }
    #days-of-week, #calendar-grid {
        gap: 5px;
    }
    #calendar-grid .day {
        padding: 12px 5px;
        font-size: 0.88em;
    }
    #note-panel {
        width: 240px;
        padding: 14px;
    }
    #year-view {
        padding-bottom: 0;
        overflow: hidden;
    }
    #year-grid {
        gap: 4px;
        transform: scale(0.92);
        transform-origin: top center;
    }
    .mini-calendar {
        padding: 4px;
    }
    .mini-calendar-header {
        font-size: 0.75em;
        margin-bottom: 3px;
    }
    .mini-days-of-week {
        margin-bottom: 3px;
    }
    .mini-days-of-week div {
        font-size: 0.55em;
    }
    .mini-day {
        height: 14px;
        font-size: 0.55em;
        border-radius: 2px;
    }
}

#calendar-grid .day.has-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(129, 199, 132, 0.4);
}

#calendar-grid .day.current-day.has-note {
    background: linear-gradient(135deg, #66bb6a 0%, #558b2f 100%);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form input {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.login-form button {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #333;
    color: white;
    cursor: pointer;
}

/* Weather Page Styles */
.weather-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.weather-body {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.weather-main {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.weather-sidebar {
    flex: 1;
    display: flex;
}

.storm-tracker-card {
    flex-grow: 1;
}

.weather-card {
    background-color: rgba(255, 255, 255, 1);
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.weather-header h1 {
    font-size: 2.5em;
}

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

#location-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px;
    border-radius: 5px;
}

#current-weather {
    cursor: pointer;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

#weather-icon {
    width: 80px;
    height: 80px;
}

.recommendation {
    margin-top: 15px;
    font-style: italic;
    color: #555;
}


/* Page-specific layouts */

/* Weather Page Layout */
body.weather-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

body.weather-layout > .container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Overwrite default container margin */
    margin: 20px 0;
    width: 100%;
}

body.weather-layout > .dock {
    flex-shrink: 0; /* Prevent dock from shrinking */
}


/* Calendar Page Layout */
body.calendar-layout {
    align-items: stretch; /* Stretch items vertically */
    padding: 20px;
    box-sizing: border-box;
}

.calendar-layout .page-wrapper {
    display: flex;
    width: 100%;
    gap: 20px;
}

.calendar-layout .container {
    flex-grow: 1; /* Allow container to grow */
    margin: 0; /* Override default margin */
    max-width: none; /* Override default max-width */
    width: auto; /* Let flexbox determine the width */
    background-color: rgba(255, 255, 255, 0.7); /* A bit more opaque */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-layout .dock {
    order: 1; /* Move dock to the right */
    flex-direction: column;
    width: auto;
    height: auto;
    margin: 0; /* Override default margin */
    flex-shrink: 0; /* Prevent dock from shrinking */
}

.calendar-layout .dock .dock-item {
    margin: 10px; /* Adjust margin for vertical layout */
}

/* Wrapper for calendar and note panel */
#content-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 100%;
    align-items: stretch; /* Make children same height */
}

#calendar-container {
    flex-grow: 1;
}

/* Note Panel Styles */
#note-panel {
    width: 300px; /* Fixed width for the panel */
    flex-shrink: 0; /* Prevent from shrinking */
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#note-panel.hidden {
    display: none;
}

#note-panel h3 {
    margin: 0;
    font-size: 1.2em;
    text-align: center;
    font-weight: 600;
    color: #333;
}

#note-textarea {
    flex-grow: 1; /* Take up available space */
    resize: none;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95em;
    line-height: 1.5;
}

#note-panel-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#note-panel-buttons button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

#save-note-btn {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: white;
}

#save-note-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

#cancel-note-btn {
    background: linear-gradient(135deg, #ef5350 0%, #f44336 100%);
    color: white;
}

#cancel-note-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}
/* Auth Section Styles */
.auth-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.auth-box {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.auth-forms {
    display: flex;
    gap: 30px;
}

.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form h3 {
    margin: 0 0 10px 0;
    color: #555;
}

.auth-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.auth-form button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-form button:hover {
    background-color: #45a049;
}

.user-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.user-info span {
    font-size: 14px;
}

.logout-btn {
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    background-color: #f44336;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover {
    background-color: #da190b;
}

/* Learning Page Styles */
.learning-container {
    max-width: 1200px;
    width: 95%;
    padding: 30px;
}

.learning-layout .page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.learning-layout .dock {
    align-self: center;
    margin-top: 8px;
}

.main-selection {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 55vh;
}

.main-selection h1 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.selection-boxes {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.selection-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    padding: 28px 32px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s ease;
    color: white;
    min-width: 320px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}

.selection-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.5s ease;
}

.selection-box:hover::before {
    left: 100%;
}

.selection-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.kids-box {
    background: linear-gradient(135deg, rgba(240,147,251,0.9) 0%, rgba(245,87,108,0.9) 100%);
}

.parents-box {
    background: linear-gradient(135deg, rgba(79,172,254,0.9) 0%, rgba(0,242,254,0.9) 100%);
}

.box-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.box-icon {
    font-size: 3.2em;
    min-width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.18);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 10px 25px rgba(0,0,0,0.15);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.selection-box h2 {
    font-size: 2em;
    margin: 0 0 6px 0;
    font-weight: bold;
}

.selection-box p {
    font-size: 1.05em;
    opacity: 0.95;
    margin: 0;
}

.box-arrow {
    font-size: 2.2em;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.selection-box:hover .box-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Learning Section */
.learning-section {
    animation: fadeIn 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.learning-section h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
}

.learning-scroll-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(128, 128, 128, 0.7);
    color: white;
    border: none;
    font-size: 2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    z-index: 10;
}

.scroll-arrow:hover {
    background-color: rgba(102, 126, 234, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.scroll-arrow:active {
    transform: scale(0.95);
}

.back-button {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    align-self: flex-start;
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.learning-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 20px 0;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    align-items: center;
    scroll-behavior: smooth;
}

.learning-grid::-webkit-scrollbar {
    height: 8px;
}

.learning-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.learning-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.learning-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

.learning-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    flex-shrink: 0;
}

.learning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f093fb, #f5576c, #4facfe, #00f2fe);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.learning-card:hover::before {
    transform: scaleX(1);
}

.learning-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.learning-card h3 {
    font-size: 1.5em;
    margin: 12px 0;
    color: #333;
}

.learning-card p {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.learning-card button {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.english-card button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vietnamese-card button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.math-card button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.video-card button {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.game-card button {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.art-card button {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.learning-card button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.parents-content {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.3em;
    color: #666;
}

/* English Lessons Grid */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.lesson-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.lesson-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.lesson-box:hover::before {
    left: 100%;
}

.lesson-box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.lesson-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.lesson-icon {
    font-size: 4em;
    margin: 20px 0;
    animation: bounceIcon 2s ease-in-out infinite;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.lesson-box h3 {
    font-size: 1.5em;
    margin: 15px 0 10px;
    font-weight: 700;
}

.lesson-box p {
    font-size: 1em;
    opacity: 0.95;
    margin-bottom: 20px;
}

.lesson-progress {
    background: rgba(255,255,255,0.3);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Lesson Content Styles */
#lesson-content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.lesson-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.lesson-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.lesson-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.lesson-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.lesson-section h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.letter-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.letter-card:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.letter-card .letter {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.letter-card .pronunciation {
    font-size: 0.9em;
    opacity: 0.9;
}

.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.vocab-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.vocab-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.vocab-card .word-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.vocab-card .word {
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
}

.vocab-card .meaning {
    font-size: 1em;
    opacity: 0.9;
}

.audio-button {
    background: rgba(255,255,255,0.3);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-size: 1.2em;
}

.audio-button:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.exercise-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

.exercise-section h3 {
    color: #d35400;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.exercise-question {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.exercise-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.option-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    font-weight: 600;
}

.option-button:hover {
    background: #764ba2;
    transform: scale(1.05);
}

.option-button.correct {
    background: #27ae60;
    animation: successPulse 0.5s ease;
}

.option-button.wrong {
    background: #e74c3c;
    animation: shake 0.5s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.listening-practice {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.play-audio-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    margin: 20px 0;
}

.play-audio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

/* Video Player Styles */
.video-player-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.video-display {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-frame {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.video-controls-bar {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.progress-container {
    margin-bottom: 15px;
}

.progress-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #f093fb 0%, #f5576c 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.progress-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: none;
    transition: all 0.2s ease;
}

.progress-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.controls-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.control-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.control-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.5);
}

.control-button:active {
    transform: translateY(-1px);
}

.play-button {
    padding: 12px 24px;
    font-size: 1.05em;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.play-button:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

.volume-slider {
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: none;
}

.video-time {
    font-weight: bold;
    color: #667eea;
    min-width: 100px;
    text-align: center;
}

.video-info {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-info h2 {
    color: #667eea;
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.video-info p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.video-channels-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.video-channels-section h3 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.4em;
    text-align: center;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.channel-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

.channel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.channel-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #764ba2;
}

.channel-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.channel-card h4 {
    margin: 10px 0 5px 0;
    color: #333;
    font-size: 1.05em;
}

.channel-card.active h4 {
    color: white;
}

.channel-card p {
    margin: 0;
    font-size: 0.9em;
    color: #999;
}

.channel-card.active p {
    color: rgba(255, 255, 255, 0.9);
}

.playlist-section {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    border-radius: 20px;
    padding: 30px;
}

.playlist-section h3 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 1.4em;
}

.playlist-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.playlist-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 20px;
    font-size: 1.05em;
}

.video-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-item.playing {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    color: white;
}

.video-item-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-item.playing .video-item-title {
    color: white;
}

.video-item-duration {
    font-size: 0.85em;
    color: #999;
}

.video-item.playing .video-item-duration {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .selection-boxes {
        flex-direction: column;
        align-items: center;
    }
    
    .selection-box {
        width: 100%;
        max-width: 400px;
    }
    
    .learning-grid {
        grid-template-columns: 1fr;
    }

    .lessons-grid {
        grid-template-columns: 1fr;
    }

    .alphabet-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .lesson-header h1 {
        font-size: 2em;
    }

    .video-player-container {
        padding: 20px;
    }

    .video-display {
        aspect-ratio: 16 / 9;
        margin-bottom: 15px;
    }

    .controls-buttons {
        gap: 8px;
    }

    .control-button {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .channels-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .playlist-container {
        grid-template-columns: 1fr;
    }

    .volume-slider {
        width: 80px;
    }
}

/* Global responsive refinements */
@media (max-width: 1200px) {
    .page-wrapper { padding: 16px; }
    .container { padding: 0 16px; }
    .dock { flex-wrap: wrap; gap: 10px; }
    .dock-item { width: 80px; }
    .dock-item img { max-width: 42px; height: auto; }
    img { max-width: 100%; height: auto; }
}

@media (max-width: 900px) {
    .album-wrapper { width: 94vw; max-width: 960px; margin: 32px auto 48px; padding: 20px; }
    body.album-page .dock {
        position: fixed;
        bottom: 12px;
        top: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        width: calc(100% - 24px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    }
    body.album-page .dock-item { width: 74px; }
    body.album-page .dock-item img { width: 36px; height: 36px; }
    .main-view { padding-top: 62%; }
    .thumbs-row { gap: 6px; }
    .thumb { width: 96px; height: 68px; }
}

@media (max-width: 600px) {
    .album-wrapper { width: 96vw; margin: 24px auto 40px; padding: 16px; }
    .main-view { padding-top: 70%; }
    .album-actions { gap: 8px; }
    .album-actions .pill-button { padding: 9px 12px; font-size: 13px; }
    .album-title { font-size: 20px; }
    #change-bg-btn { top: 14px; right: 14px; padding: 8px 12px; }
    .dock { gap: 8px; }
    .dock-item { width: 70px; }
    .dock-item img { max-width: 34px; height: auto; }
}