﻿main {
    gap: 0;
    padding-top: 18px;
    background-color: #ededed;
}
/* Hero Section */
.music-service-hero {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    padding: 20px 88px 0;
}

.hero-content-wrapper {
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 0 5%;
}

.hero-left-content {
    flex: 0 0 auto;
}

.breadcrumb-container {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb {
    font-family: 'AttenNew', 'Atten New', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 1px;
    color: #9EA3A6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-arrow {
    width: 24px;
    height: 24px;
}

.music-service-title {
    font-family: 'AttenNew', 'Atten New', sans-serif;
    font-weight: 800;
    font-size: 72px;
    line-height: 83%;
    color: #000000;
    margin: 0 0 20px 0;
}

.music-service-description {
    font-family: 'AttenNew', 'Atten New', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: #333333;
    margin: 0;
    max-width: 527px;
}

.digital-wheel-section {
    position: relative;
    display: flex;
    padding: 120px 80px;
    background: #ededed;
    overflow: hidden; /* ตัดรูปที่ล้น */
    min-height: 700px;
}
.wheel-visual {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 700px;           /* คุมขนาดที่นี่ */
    pointer-events: none;  /* ไม่บัง hover */
}

.wheel-visual img {
    width: 100%;
    max-width: 352px;
}
/* เมนู */
.wheel-menu {
    position: relative;
    left: 170px;
    top: -120px;
}

.wheel-menu li {
    position: absolute;
    cursor: pointer;
    white-space: nowrap;
    font-size: 38px;
    transition: .25s;
    list-style: none;
    line-height: 90%;
    font-weight: 600;
}

.wheel-menu li:hover,
.wheel-menu li.active {
    font-weight: 900;
}

.wheel-menu li a {
    text-decoration: none;
    color: var(--text-color);
}

.wheel-content {
    margin-left: 650px;
    max-width: 980px;
}

.wheel-content h2 {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 24px;
}

.wheel-content p {
    font-size: 23px;
    line-height: 1.6;
}
@media (max-width: 1899px) and (min-width: 1200px) {
    .singles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1200px) {

    .wheel-menu .menu-item {
        white-space: nowrap;
        font-size: 38px;
        font-weight: 600;
    }

    .wheel-menu .item-1 { left:   0%; top:  15%; }
    .wheel-menu .item-2 { left: 250%; top: 35.5%; }
    .wheel-menu .item-3 { left: 390%; top: 57%; }
    .wheel-menu .item-4 { left: 400%; top: 89.5%; }
    .wheel-menu .item-5 { left: 320%; top: 111%; }
    .wheel-menu .item-6 { left:  62%; top: 133%; }
}

@media (max-width: 1199px) {
    .hero-content-wrapper {
        gap: 0;
    }

    .digital-wheel-section {
        padding: 3px 40px;
        min-height: auto;
        flex-direction: column;
    }

    /* แผ่นเสียงเล็กลง */
    .wheel-visual {
        top: 34%;
    }

    .wheel-visual img {
        max-width: 260px;
    }

    /* เมนูย่อ + ขยับ */
    .wheel-menu {
        margin: 0;
        padding: 0;
        left: 170px;
        top: 0;
    }

    .wheel-menu .menu-item {
        font-size: 20px;
        margin: 12px 0;
        line-height: 1.3;
        white-space: normal;
    }

    .wheel-menu li {
        font-size: 26px;
    }

    /* content ลงล่าง */
    .wheel-content {
        margin-left: 0;
        margin-top: 520px;
        max-width: 100%;
    }

    .wheel-content h2 {
        font-size: 48px;
    }

    .wheel-menu .item-1 { left: -20px; top: 35px; }
    .wheel-menu .item-2 { left: 35px; top: 103px; }
    .wheel-menu .item-3 { left: 74px; top: 175px; }
    .wheel-menu .item-4 { left: 75px; top: 279px; }
    .wheel-menu .item-5 { left: 58px; top: 352px; }
    .wheel-menu .item-6 { left: 2px; top: 422px; }
}

@media (max-width: 768px) {

    .digital-wheel-section {
        padding: 40px 20px;
        min-height: auto;
    }

    /* แผ่นเสียง: เล็ก + ชิดซ้าย */
    .wheel-visual {
        top: 200px;
    }

    .wheel-visual img {
        max-width: 200px;
    }

    /* menu → list ธรรมดา */
    .wheel-menu {
        margin: 0;
        padding: 0;
        top: -15px;
        left: 120px;
    }

    .wheel-menu .menu-item {
        font-weight: 700;
    }

    .wheel-menu li {
        font-size: 20px;
        margin: 14px 0;
        line-height: 1.2;
    }

    /* content ลงล่าง */
    .wheel-content {
        max-width: 100%;
        margin-top: 380px;
    }

    .wheel-content h2 {
        font-size: 36px;
    }

    .wheel-content p {
        font-size: 16px;
    }

    .wheel-menu .item-1 { left: 0; top: 0; }
    .wheel-menu .item-2 { left: 50px; top: 50px; }
    .wheel-menu .item-3 { left: 74px; top: 100px; }
    .wheel-menu .item-4 { left: 75px; top: 185px; }
    .wheel-menu .item-5 { left: 62px; top: 240px; }
    .wheel-menu .item-6 { left: 25px; top: 297px; }
}

/* Singles Section */
.singles-section {
    padding: 20px 88px;
    background: #ededed;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'AttenNew', 'Atten New', sans-serif;
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    color: #000;
}

.singles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 50px 40px;
    margin-bottom: 40px;    
}

.single-card {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s;
    background: #fff;
    padding-bottom: 20px;
}

.single-card:hover {
    transform: translateY(-10px);
}

.single-card:not(:first-child) {
    background: #FFFFFF;
}

.single-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* ทำให้สี่เหลี่ยมจัตุรัส */
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0; /* เพิ่มมุมโค้งเล็กน้อยถ้าต้องการ */
    overflow: hidden;
}

.single-info {
    padding: 20px 32px 11px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.single-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #262424;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
}
.single-alt {

}
.single-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    width: 34px;
    height: 34px;
    background: #F6F6F6;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.action-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.action-btn:hover {
    background: #FFE600;
    transform: scale(1.1);
}

/* Singles Responsive - Notebook layout as base (5 columns) */
@media (min-width: 1920px) {
    .singles-section {
        padding: 60px 120px;
    }
            
    .singles-grid {
    }
            
    .single-card {
        
    }
            
    .single-image {
        
    }
}

/* Singles Responsive - Notebook layout as base (4 columns) */
@media (max-width: 1800px) and (min-width: 1200px) {
    .singles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet landscape - reduce to 4 columns but maintain proportions */
@media (max-width: 1199px) and (min-width: 992px) {
    .singles-section {
        padding: 30px 70px;
    }
            
    .singles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
            
    .single-card {
        
    }
            
    .single-image {
        
    }
}

/* Mobile landscape - 3 columns */
@media (max-width: 991px) and (min-width: 768px) {
    .singles-section {
        padding: 30px 50px;
    }
            
    .singles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
            
    .single-card {
        
    }
            
    .single-image {
        
    }
            
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* iPad Portrait - 3 columns optimized */
@media (max-width: 767px) and (min-width: 601px) {
    .singles-section {
        padding: 25px 35px;
    }
            
    .singles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 40px;
    }
            
    .single-card {        
        border-radius: 18px;
        box-shadow: 0 2px 25px rgba(0, 0, 0, 0.2);
    }
            
    .single-image {
        
    }
            
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        margin-bottom: 45px;
    }
            
    .single-info {
        padding: 18px 28px 10px;
    }
            
    .single-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
}

/* Mobile portrait - 2 columns beautiful */
@media (max-width: 600px) and (min-width: 376px) {
    .singles-section {
        padding: 25px 25px;
    }
            
    .singles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
        padding: 15px 10px;
    }
            
    .single-card {
        border-radius: 16px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
    }
            
    .single-image {
        
    }
            
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 40px;
    }
            
    .single-info {
        padding: 16px 24px 9px;
    }
            
    .single-title {
        font-size: 17px;
        margin-bottom: 12px;
    }
}

/* Small mobile - 1 column elegant */
@media (max-width: 375px) {
    .singles-section {
        padding: 15px 20px;
    }
            
    .singles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        height: 1000px;
    }
            
    .single-card {
        border-radius: 15px;
        box-shadow: 0 2px 18px rgba(0, 0, 0, 0.16);
    }
            
    .single-image {
        
    }
            
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin-bottom: 30px;
    }
            
    .single-info {
        padding: 15px 20px 8px;
    }
            
    .single-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
            
    .action-btn {
        width: 30px;
        height: 30px;
    }
            
    .action-btn img {
        width: 16px;
        height: 16px;
    }
}
.social-icons {
    display: flex;
    gap: 28px;
    align-items: center;
    padding-top: 10px;
}

.social-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;          /* ไม่ให้ดูเหมือนคลิกได้ */
}

.social-icon i {
    font-size: 34px;          /* ขนาดใหญ่ขึ้น */
    color: #000;              /* สีดำ */
}

/* Tooltip */
.social-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 140%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: all 0.2s ease;
}

/* ลูกศร tooltip */
.social-icon::before {
    content: "";
    position: absolute;
    bottom: 125%;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.2s ease;
}

/* Hover */
.social-icon:hover::after,
.social-icon:hover::before {
    opacity: 1;
    transform: translateY(0);
}
