.w {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.w1 {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.h3 a {
    display: none;
}

/* <!-- 导航栏 star--> */
.navigation {
    position: sticky;
    /* 关键：粘性定位 */
    top: 0;
    /* 粘到窗口最顶部 */
    z-index: 999;
    /* 保证压在其他元素之上 */

    height: 60px;
    background-color: #000;
    color: #ddd;
}

.navigation .w {
    display: flex;
    align-items: center;
    height: 100%;
    width: fit-content;
    min-width: 1200px;
    max-width: 98%;
    margin: 0 auto;
}

.logo-link {
    display: block;
    margin-left: 40px;
    margin-right: 10px;
    flex-shrink: 0;
}

.logo {
    width: 202px;
    height: 54px;
    background-image: url(../images/logo_text_3.png);
    background-repeat: no-repeat;
    background-size: contain;
}

/* 导航分类 */
.classification {
    /* margin-right: auto; Removed to prevent huge gap */
    margin-left: 0;
    margin-right: 20px;
    flex-shrink: 0;
}

.classification ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.classification li {
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.classification a {
    color: #dacaca;
    font-size: 16px;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    /* Works fine inside flex li */
    padding: 15px 10px;
}

.classification a.active {
    color: #ffffff;
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
}

.classification a:hover {
    color: #ffffff;
}

.separator {
    color: #666;
    margin: 0;
    font-size: 12px;
}

/* <!-- 搜索框 --> */
.search-container {
    margin: 0 20px 0 auto;
    /* Push search to the right, but keep flow */
    position: relative;
    width: 280px;
    display: flex;
    border-radius: 0;
    flex-shrink: 0;
}

.search-input {
    width: 240px;
    height: 30px;
    border: 1px solid #ccc;
    padding-left: 10px;
    outline: none;
    float: left;
}

.search-button {
    width: 40px;
    height: 30px;
    background-color: #333;
    border: none;
    cursor: pointer;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* 登录 */
.log {
    margin-right: 40px;
    flex-shrink: 0;
}

.log a {
    color: #dacaca;
    font-size: 14px;
}

.log a:hover {
    color: #fff;
}

/* 专辑列表过滤器样式 */
.album-filter {
    background: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.filter-label {
    font-size: 15px;
    color: #666;
    margin-right: 15px;
    flex-shrink: 0;
}

.current-filter-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f8f8f8;
    color: #c00;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.current-filter-tag span {
    color: #333;
    margin-left: 5px;
}

.filter-options label {
    margin-right: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.filter-options input[type="radio"] {
    margin-right: 5px;
}

#secondary-type-container label {
    margin-right: 15px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

#secondary-type-container label:hover {
    background-color: #f0f0f0;
    color: #c00;
}

#secondary-type-container input[type="radio"] {
    margin-right: 5px;
}

.filter-toggle-btn {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    background: #fff;
    margin-left: 10px;
}

.filter-toggle-btn:hover {
    border-color: #c00;
    color: #c00;
}

/* <!-- 轮播图 star --> */
.banner-container {
    width: 750px;
    height: 255px;
    position: relative;
    margin: 10px auto 30px;
    overflow: hidden;
    max-width: 100%;
}

.banner-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
}

.banner-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.banner-dot.active {
    background-color: #fff;
}

/* Removed unused .fade-slider styles */


/* <!-- 轮播图 end --> */

/* <!-- 免费试听 star --> */
/* <!-- 栏目名称 --> */
.columnfree {
    width: 1100px;
    height: 35px;
    border-left: 10px solid rgb(214, 0, 23);
    display: flex;
    align-items: center;
    padding-left: 16px;
    margin: 10px auto;
}

.columnfree {
    font-size: 18px;
    font-weight: bold;
}



/* <!-- 专辑推荐模块 star--> */
/* <!-- 栏目名称 --> */
.column {
    width: 1100px;
    background: #f6f6f6;
    height: 35px;
    border-left: 8px solid #54a6dd;
    display: flex;
    align-items: center;
    padding-left: 16px;
}

.column_1 {
    font-size: 16px;
    text-decoration: none;
    color: #000;
}

.column_2 {
    margin-left: auto;
    padding-right: 15px;
    font-size: 16px;
    text-decoration: none;
    color: #ff0202;
}

/* 专辑筛选分类 */
.album-filter {
    width: 1100px;
    margin-top: 15px;
    padding: 20px 24px;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.album-filter .filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 20px;
}

.album-filter .filter-label {
    font-weight: bold;
    margin-right: 15px;
    color: #333;
    min-width: 80px;
    font-size: 15px;
}

.album-filter label {
    margin-right: 20px;
    cursor: pointer;
    color: #555;
    font-size: 15px;
}

.album-filter input[type="checkbox"] {
    margin-right: 5px;
}

/* <!-- 专辑列表 --> */
.album_list {
    width: 1100px;
    margin: 15px auto 25px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    /* 一行 6 张 */
    gap: 20px;
    list-style: none;
    padding: 0;
}

.album_card {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    display: block;
    text-decoration: none;
    color: inherit;
}

.cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 正方形封面 */
    object-fit: cover;
}

.meta {
    /* padding: 10px; */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.title {
    font-size: 14px;
    color: #000;
    margin: 0 0 4px;
    min-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 167px;
    word-break: break-word;
}


.artist {
    font-size: 14px;
    color: #666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    max-width: 167px;
}


.format {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 13px;
    color: #444444;
    margin: 4px 0;
}


.format-icon {
    width: 20px;
    height: 13px;
    background: url("https://music.sonyselect.net/app/img/hr.png") no-repeat center / contain;
    flex-shrink: 0;
    margin-left: 4px;
}



.badge {
    align-self: flex-start;
    background: #54a6dd;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

/* <!-- 专辑推荐模块 end--> */

/* Mobile and Tablet Adaptation */
@media screen and (max-width: 1200px) {

    .w,
    .w1,
    .column,
    .columnfree,
    .album-filter,
    .album_list {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .navigation .w {
        min-width: 0 !important;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .w,
    .w1 {
        padding: 0 10px;
    }

    .column,
    .columnfree,
    .album-filter {
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .album_list {
        width: 100% !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 900px) {
    .album_list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .album_list {
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 5px; /* Add slight padding */
    }

    .album_list.mobile-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .banner-container {
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 34%;
        /* Maintain 750:255 aspect ratio (255/750 = 0.34) */
    }

    .banner-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .banner-dots {
        bottom: 10px;
    }

    .navigation {
        height: auto;
        padding-bottom: 5px;
        position: relative;
    }

    .navigation .w {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding-top: 15px;
    }

    .logo-link {
        float: none;
        margin: 0 5px 0 0;
        order: 1;
        width: auto;
    }

    .logo {
        height: 32px;
        width: 32px;
        /* Square logo */
        background-image: url(../logo/sjlogo.png);
        background-size: contain;
        background-position: center;
    }

    .search-container {
        float: none;
        margin: 0 25px;
        width: auto;
        flex: 1;
        /* Take remaining space */
        min-width: 0;
        order: 2;
    }

    .search-input {
        width: 100%;
        /* Fill container */
    }

    .log {
        position: static;
        margin: 0 0 0 5px;
        order: 3;
        margin-left: 0;
        white-space: nowrap;
    }

    .log a {
        font-size: 14px !important;
    }

    .classification {
        float: none;
        margin: 5px 0 0;
        width: 100%;
        order: 4;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        text-align: left;
        padding-bottom: 5px;
        /* Space for scrollbar if any */
    }

    /* Hide scrollbar for Chrome/Safari/Opera */
    .classification::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .classification {
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .classification ul {
        display: flex;
        padding: 0;
        margin: 0;
        width: auto;
    }

    .classification li {
        float: none;
        display: block;
        margin: 0;
        flex-shrink: 0;
    }

    .classification a {
        padding: 5px 10px;
        font-size: 14px;
    }

    .separator {
        display: none;
    }

    .banner-container {
        height: auto;
        aspect-ratio: 16/9;
    }

    .banner-wrapper {
        height: 100%;
    }

    .banner-slide img {
        height: 100%;
        object-fit: cover;
    }

    /* Footer or other elements adaptation */
    .column,
    .columnfree {
        font-size: 16px;
        height: auto;
        padding: 10px;
    }

    .album-filter {
        padding: 15px;
    }

    .album-filter .filter-group {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 0;
        margin-bottom: 15px;
        line-height: 1.8;
    }

    .album-filter .filter-label {
        margin-bottom: 0;
        margin-right: 0;
        white-space: nowrap;
        width: 85px; /* Fixed width for alignment */
        flex-shrink: 0;
    }

    /* Options container */
    .album-filter #secondary-type-container,
    .album-filter .filter-options {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .album-filter input[type="radio"] {
        margin: 0 2px 0 0;
        vertical-align: middle;
    }

    .album-filter label {
        margin-right: 10px;
        margin-left: 0;
        display: inline-block;
    }
}