:root {
    /* Premium Material 3 Light Mode Palette */
    --md-sys-color-primary: #0F766E;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #CCFBF1;
    --md-sys-color-on-primary-container: #042F2E;
    --md-sys-color-secondary: #475569;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #F1F5F9;
    --md-sys-color-on-secondary-container: #0F172A;
    
    --md-sys-color-background: #F8FAFC;
    --md-sys-color-on-background: #0F172A;
    --md-sys-color-surface: #FFFFFF;
    --md-sys-color-on-surface: #0F172A;
    --md-sys-color-surface-variant: #E2E8F0;
    --md-sys-color-on-surface-variant: #475569;
    --md-sys-color-outline: #CBD5E1;
    --md-sys-color-outline-variant: #E2E8F0;
    --md-sys-color-surface-container-low: #F1F5F9;
    --md-sys-color-surface-container: #F8FAFC;
    --md-sys-color-surface-container-high: #E2E8F0;
    --md-sys-color-error: #B3261E;
    --md-sys-color-error-container: #F9DEDC;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-on-error-container: #410E0B;
    
    --wallpaper-card-radius: 20px;
    --wallpaper-card-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    --wallpaper-card-shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.12);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Typography (Privacy, Terms) */
.content-card h1 { font-size: 36px; font-weight: 700; color: var(--md-sys-color-on-surface); margin-bottom: 24px; letter-spacing: -1px; }
.content-card h2 { font-size: 24px; font-weight: 600; color: var(--md-sys-color-on-surface); margin: 32px 0 16px; letter-spacing: -0.5px; }
.content-card h3 { font-size: 18px; font-weight: 600; color: var(--md-sys-color-on-surface); margin: 24px 0 12px; }
.content-card p { font-size: 16px; line-height: 1.7; color: var(--md-sys-color-on-surface-variant); margin-bottom: 16px; }
.content-card ul { margin-left: 24px; margin-bottom: 24px; }
.content-card li { font-size: 16px; line-height: 1.7; color: var(--md-sys-color-on-surface-variant); margin-bottom: 8px; }
.content-card strong { color: var(--md-sys-color-on-surface); font-weight: 600; }

/* Top App Bar */
.top-app-bar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

.top-app-bar__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--md-sys-color-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.top-app-bar__leading, .top-app-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.icon-button:hover {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-primary);
    transform: scale(1.05);
}

.icon-button .material-icons-round {
    font-size: 24px;
}

/* Common Layout */
.main-content {
    padding: 24px 40px;
    max-width: 1800px;
    margin: 0 auto;
}

/* Index / Search Typography */
.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.section-title .material-icons-round {
    color: var(--md-sys-color-primary);
    background: var(--md-sys-color-primary-container);
    padding: 8px;
    border-radius: 12px;
    font-size: 20px;
}

/* Hero Section (Index/Search) */
.hero-section, .search-hero {
    padding: 40px 24px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(204, 251, 241, 0.3) 0%, rgba(248, 250, 252, 0) 100%);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 32px;
    max-width: 600px;
    margin-inline: auto;
}

/* Search Bar */
.search-container {
    padding: 0 24px 32px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--md-sys-color-surface);
    border-radius: 100px;
    padding: 8px 16px 8px 24px;
    height: 64px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    border-color: var(--md-sys-color-primary);
    transform: translateY(-2px);
}

.search-bar .material-icons-round,
.search-bar .material-icons-round:first-child {
    color: var(--md-sys-color-primary);
    font-size: 28px;
    margin-right: 12px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    font-family: 'Outfit', sans-serif;
    color: var(--md-sys-color-on-surface);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--md-sys-color-outline);
}

.search-btn {
    background-color: var(--md-sys-color-primary);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 0 24px;
    height: 48px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-hero .search-btn {
    width: 48px;
    padding: 0;
}

.search-btn:hover {
    background-color: #0d6159;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
    transform: scale(1.05);
}

/* Filter Chips (Search) */
.filter-section {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.filter-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    background-color: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
    border-color: var(--md-sys-color-outline);
    transform: translateY(-2px);
}

.filter-chip--active {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

.filter-chip--active:hover {
    background-color: #A7F3D0;
    border-color: transparent;
}

/* Search Info */
.search-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 16px 24px;
    background-color: var(--md-sys-color-surface);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.search-info__text { font-size: 18px; color: var(--md-sys-color-on-surface-variant); }
.search-info__query { font-weight: 600; color: var(--md-sys-color-on-surface); }
.search-info__count {
    font-size: 15px;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    background: var(--md-sys-color-primary-container);
    padding: 6px 16px;
    border-radius: 100px;
}

/* Wallpaper Grid */
.wallpaper-grid, .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

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

.wallpaper-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--wallpaper-card-radius);
    overflow: hidden;
    box-shadow: var(--wallpaper-card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wallpaper-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--wallpaper-card-shadow-hover);
}

.wallpaper-card__image-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background-color: var(--md-sys-color-surface-container-low);
}

.wallpaper-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wallpaper-card:hover .wallpaper-card__image { transform: scale(1.08); }

.wallpaper-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.wallpaper-card:hover .wallpaper-card__overlay { opacity: 1; }

.wallpaper-card__action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wallpaper-card__action-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--md-sys-color-primary);
    transform: scale(1.1);
}

.wallpaper-card__info {
    padding: 20px;
    background: var(--md-sys-color-surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-grid .wallpaper-card__info {
    padding: 16px;
}

.wallpaper-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.wallpaper-card__meta {
    font-size: 13px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallpaper-card__meta .material-icons-round {
    font-size: 16px;
    color: var(--md-sys-color-primary);
    opacity: 0.7;
}

.badge-4k {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    margin-left: auto;
}

/* Individual Page Layout (app3/page.html) */
.wallpaper-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: start;
}

.image-preview {
    background-color: var(--md-sys-color-surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
}

.image-preview__container {
    position: relative;
    background-color: var(--md-sys-color-surface-container-low);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-in;
    overflow: hidden;
}

.image-preview__image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-preview__container:hover .image-preview__image { transform: scale(1.02); }

.image-preview__zoom-hint {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.image-preview__container:hover .image-preview__zoom-hint { opacity: 1; transform: translateY(0); }

.info-panel {
    background-color: var(--md-sys-color-surface);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(255,255,255,0.8);
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.info-panel__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    padding-bottom: 24px;
}

.info-panel__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.info-panel__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.info-panel__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    background: var(--md-sys-color-surface-container-low);
    padding: 6px 12px;
    border-radius: 100px;
}

.info-panel__meta-item .material-icons-round { font-size: 18px; color: var(--md-sys-color-primary); }

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 100px;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-decoration: none;
}

.btn--filled {
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #0d6159 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3);
}

.btn--filled:hover { box-shadow: 0 8px 24px rgba(15, 118, 110, 0.4); transform: translateY(-2px); }

.btn--tonal { background-color: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.btn--tonal:hover { background-color: #99F6E4; transform: translateY(-2px); }

.btn--outlined { background-color: transparent; color: var(--md-sys-color-on-surface); border: 1px solid var(--md-sys-color-outline); }
.btn--outlined:hover { background-color: var(--md-sys-color-surface-container-low); border-color: var(--md-sys-color-on-surface-variant); transform: translateY(-2px); }

.btn--kofi {
    background-color: #FF5E5B;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(255, 94, 91, 0.3);
}

.btn--kofi:hover {
    background-color: #e04a47;
    box-shadow: 0 8px 24px rgba(255, 94, 91, 0.4);
    transform: translateY(-2px);
}

.btn .material-icons-round { font-size: 24px; }

.info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-section__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.info-section__title .material-icons-round { font-size: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tag:hover { background-color: var(--md-sys-color-secondary-container); color: var(--md-sys-color-primary); transform: translateY(-1px); }

.related-section { margin-top: 64px; }
.related-section__title { font-size: 24px; font-weight: 600; color: var(--md-sys-color-on-surface); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; letter-spacing: -0.5px; }
.related-section__title .material-icons-round { color: var(--md-sys-color-primary); background: var(--md-sys-color-primary-container); padding: 8px; border-radius: 12px; font-size: 20px; }

.image-id-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}
.image-id-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.image-id-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 12px;
    background-color: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}
.btn--copy {
    background-color: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--md-sys-color-outline);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}
.btn--copy:hover {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-primary);
    transform: translateY(-2px);
}

/* Modals & Loaders */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal--active { display: flex; opacity: 1; }
.modal__image {
    max-width: 100%; max-height: 100vh; object-fit: contain; border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4); transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal--active .modal__image { transform: scale(1); }
.modal__close {
    position: absolute; top: 24px; right: 24px; width: 56px; height: 56px;
    border-radius: 50%; background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.2);
    color: white; cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: all 0.3s ease; z-index: 1001;
}
.modal__close:hover { background-color: rgba(255, 255, 255, 0.2); transform: scale(1.1) rotate(90deg); }

.no-results, .loading, .error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    text-align: center;
    background: var(--md-sys-color-surface);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    margin-top: 24px;
}

.loading, .error { min-height: 50vh; display: flex; background: none; box-shadow: none; border: none; }
#loading, #noResults { display: none; } /* Override for specific pages */

.no-results { border: 1px dashed var(--md-sys-color-outline); }

.no-results .material-icons-round, .error .material-icons-round { font-size: 80px; color: var(--md-sys-color-outline); margin-bottom: 24px; }
.error .material-icons-round { color: var(--md-sys-color-error); }

.no-results__title, .error__title { font-size: 24px; font-weight: 600; color: var(--md-sys-color-on-surface); margin-bottom: 12px; }
.no-results__text, .error__text { font-size: 16px; color: var(--md-sys-color-on-surface-variant); max-width: 400px; margin-bottom: 24px; }

.loading__spinner {
    width: 56px; height: 56px; border: 5px solid var(--md-sys-color-surface-container-high);
    border-top-color: var(--md-sys-color-primary); border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.loading__text { margin-top: 24px; font-size: 16px; font-weight: 500; color: var(--md-sys-color-on-surface-variant); }

/* Legal Pages */
.content-card {
    background-color: var(--md-sys-color-surface);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(255,255,255,0.8);
    margin-bottom: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.last-updated {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    padding: 12px 20px;
    background-color: var(--md-sys-color-surface-container-low);
    border-radius: 12px;
    margin-bottom: 32px;
    display: inline-block;
}

.contact-info {
    padding: 24px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-radius: 16px;
    margin: 32px 0;
}
.contact-info p, .contact-info strong { color: var(--md-sys-color-on-primary-container); }

.warning-box {
    background-color: #FEF3C7;
    border-left: 4px solid #F59E0B;
    padding: 20px;
    margin: 32px 0;
    border-radius: 0 16px 16px 0;
}
.warning-box p, .warning-box li { color: #92400E; }
.warning-box strong { color: #78350F; }

/* Footer */
.footer {
    background-color: var(--md-sys-color-surface);
    padding: 48px 32px;
    text-align: center;
    margin-top: 64px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.footer__text { font-size: 15px; font-weight: 500; color: var(--md-sys-color-on-surface); margin-bottom: 16px; }
.footer__links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.footer__link {
    color: var(--md-sys-color-on-surface-variant); text-decoration: none; font-size: 14px;
    font-weight: 500; transition: color 0.3s; padding: 8px 16px;
    border-radius: 100px; background: var(--md-sys-color-surface-container-low);
}
.footer__link:hover { color: var(--md-sys-color-primary); background: var(--md-sys-color-primary-container); }
.footer__disclaimer {
    font-size: 13px; color: var(--md-sys-color-on-surface-variant); line-height: 1.6;
    max-width: 600px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--md-sys-color-outline-variant);
}

/* Responsive */
@media (max-width: 1200px) {
    .wallpaper-detail { grid-template-columns: 1fr; }
    .info-panel { position: static; }
}

@media (max-width: 768px) {
    .top-app-bar { padding: 12px 20px; }
    .hero-title { font-size: 32px; }
    .search-bar { height: 56px; padding-left: 16px; }
    .search-btn { display: none; }
    .main-content { padding: 20px; }
    .wallpaper-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
    .search-info { flex-direction: column; gap: 12px; align-items: flex-start; }
    .filter-chip { padding: 8px 16px; font-size: 14px; }
    .image-preview__container { min-height: 300px; padding: 12px; }
    .info-panel__title { font-size: 24px; }
    .related-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .content-card { padding: 24px; border-radius: 16px; }
    .content-card h1 { font-size: 28px; }
}
