:root {
    --white: #f0f0f0;
    --dark: #242f42;
    --blue: #252f52;
    --light-blue: #64c8ff;
    --gray: #7d7d7d;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

*::-webkit-scrollbar {
    display: none;
}

html {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    height: 100%;
}

body {
    background: var(--dark);
    overflow: hidden;
    padding: 0;
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    text-decoration: none;
}

.phone-container {
    background-color: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.phone-background {
    width: min(350px, 90vw);
    height: min(600px, 85vh);
    position: relative;
    border: solid 3px var(--light-blue);
    border-radius: 25px;
    background-image:
        conic-gradient(from 160deg at 70px 168.5px, #FDC12D 0deg 90deg, transparent 90deg),
        conic-gradient(from 21deg at 168px 71px, #FDC12D 0deg 90deg, transparent 90deg),
        conic-gradient(from 21deg at 141px 141px, #FEEBAE 0deg 114deg, transparent 114deg),
        conic-gradient(from -21deg at 96.5px 44px, #1483CA 0deg 131.5deg, transparent 131.5deg),
        conic-gradient(from -70deg at 43.5px 97px, #FDC12D 0deg 115.5deg, transparent 115.5deg),
        conic-gradient(from 134.5deg at 141px 141px, #1483CA 0deg 114.5deg, transparent 114deg),
        conic-gradient(from 160deg at 43.5px 97px, #FEEBAE 0deg 130.5deg, transparent 120deg 360deg);
    background-color: skyblue;
    background-size: 195.5px 195.5px;
    background-position: -30px -30px;
    background-repeat: repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.phone-camera {
    width: 12px;
    height: 12px;
    position: absolute;
    background: radial-gradient(circle, #333, #000);
    top: 15px;
    left: 25px;
    border: solid 2px #666;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.phone-speaker {
    width: 60px;
    height: 4px;
    position: absolute;
    background: linear-gradient(90deg, #555, #333);
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 5;
}

.status-bar {
    position: absolute;
    top: 8px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light-blue);
    box-shadow: 0 0 8px var(--light-blue);
    animation: pulse 2s infinite;
}

.battery-indicator {
    width: 20px;
    height: 10px;
    border: 1px solid var(--white);
    border-radius: 2px;
    position: relative;
    opacity: 0.7;
}

.battery-indicator::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 6px;
    background: var(--white);
    border-radius: 0 1px 1px 0;
}

.battery-level {
    height: 100%;
    background: linear-gradient(90deg, var(--light-blue), var(--white));
    border-radius: 1px;
    width: 75%;
    transition: width 0.3s ease;
}

.section {
    position: relative;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.clock-section {
    flex-shrink: 0;
    padding-top: 40px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clock {
    text-align: center;
    font-family: 'Arial Black', Gadget, sans-serif;
    background: linear-gradient(135deg, var(--dark), var(--blue), var(--light-blue), var(--blue), var(--dark));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 8s ease-in-out infinite;
    margin: 0;
    padding: 15px 0;
    font-size: 2.8em;
    font-weight: bold;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 10px var(--light-blue));
}

.date-display {
    text-align: center;
    color: var(--dark);
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 10px;
    font-weight: bold;
    background-color: rgba(240, 240, 240, 0.3);
    padding: 8px 15px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    max-width: 90%;
    word-wrap: break-word;
}

.social-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 25px 10px;
    flex-grow: 1;
}

.radio-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 15px;
    gap: 10px;
    flex-shrink: 0;
    background: rgba(240, 240, 240, 0.15);
    border-radius: 20px;
    margin: 0 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 200, 255, 0.2);
    box-sizing: border-box;
}

.radio-btn {
    background: linear-gradient(135deg, var(--white), #e0e0e0);
    border: 2px solid var(--light-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.radio-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--light-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.radio-btn:hover::before {
    width: 100%;
    height: 100%;
}

.radio-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(100, 200, 255, 0.4);
}

.radio-btn i {
    font-size: 14px;
    color: var(--dark);
    z-index: 1;
    transition: color 0.3s ease;
}

.radio-btn:hover i {
    color: var(--white);
}

.station-name {
    font-size: 0.85em;
    color: var(--dark);
    text-align: center;
    min-width: 100px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(240, 240, 240, 0.8);
    padding: 8px 10px;
    border-radius: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 1;
}

.audio-section {
    text-align: center;
    padding: 15px 0 20px 0;
    flex-shrink: 0;
}

.audio-section audio {
    max-width: 90%;
    display: block;
    margin: 0 auto;
    border-radius: 25px;
    filter: invert(0.1) sepia(0.5) hue-rotate(180deg) saturate(5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background-color: var(--white);
    border: 3px solid var(--light-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.app-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(100, 200, 255, 0.4);
    background: linear-gradient(135deg, var(--white), var(--light-blue));
}

.app-icon i {
    color: var(--dark);
    font-size: 32px;
    line-height: 1;
    transition: all 0.3s ease;
}

.app-icon:hover i {
    transform: scale(1.1);
    color: var(--white);
}

.app-text {
    color: var(--dark);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 0.65em;
    font-weight: bold;
    line-height: 1.2;
}

.menu-view {
    background: linear-gradient(200deg, var(--gray), var(--light-blue), var(--gray));
    border-radius: 0 0 20px 20px;
    padding-top: 40px;
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 20px 15px;
    box-sizing: border-box;
    gap: 40px 15px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(240, 240, 240, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid var(--light-blue);
    border-radius: 15px;
    padding: 15px 20px;
    color: var(--dark);
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.notification.show {
    transform: translateX(0);
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s infinite linear;
    z-index: -1;
    pointer-events: none;
}

@keyframes textShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-50px) rotate(180deg);
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-down {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 768px) {
    .phone-container {
        padding: 20px;
    }
    
    .phone-background {
        width: min(400px, 40vw);
        height: min(700px, 80vh);
        border-radius: 30px;
    }
    
    .clock {
        font-size: 3.2em;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
    }
    
    .app-icon i {
        font-size: 36px;
    }
}

@media screen and (min-width: 1200px) {
    .phone-background {
        width: min(450px, 35vw);
        height: min(750px, 75vh);
    }
}

@media screen and (orientation: landscape) {
    body {
        height: 100vh;
    }
    
    .phone-container {
        padding: 5px;
    }
    
    .phone-background {
        width: min(300px, 45vh);
        height: min(500px, 90vh);
        border-radius: 20px;
    }
    
    .clock-section {
        padding-top: 30px;
        padding-bottom: 5px;
    }
    
    .clock {
        font-size: 2.2em;
        padding: 10px 0;
    }
    
    .social-section {
        padding: 15px 10px;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
    }
    
    .app-icon i {
        font-size: 28px;
    }
    
    .radio-section {
        padding: 10px 15px;
        margin: 0 20px;
    }
    
    .audio-section {
        padding: 10px 0 15px 0;
    }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    .phone-background {
        width: min(280px, 40vh);
        height: min(450px, 95vh);
    }
    
    .clock {
        font-size: 1.8em;
    }
    
    .clock-section {
        padding-top: 20px;
    }
    
    .social-section {
        padding: 10px;
    }
    
    .app-icon {
        width: 50px;
        height: 50px;
    }
    
    .app-icon i {
        font-size: 24px;
    }
}

@media screen and (orientation: landscape) and (min-width: 768px) {
    .phone-background {
        width: min(350px, 50vh);
        height: min(600px, 85vh);
    }
    
    .clock {
        font-size: 2.5em;
    }
}

@media (pointer: coarse) {
    .app-icon {
        min-width: 60px;
        min-height: 60px;
    }
    
    .radio-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

@supports (padding: max(0px)) {
    body {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }
}

@media screen and (max-width: 500px) {
    body {
        height: 100dvh;
    }

    .phone-container {
        max-width: 100%;
        height: 100%;
        max-height: 100dvh;
        padding: 0;
    }

    .phone-background {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .phone-camera {
        top: 25px;
        left: 30px;
    }

    .phone-speaker {
        top: 25px;
    }

    .clock {
        font-size: 2.5em;
    }

    .section {
        padding-left: 20px;
        padding-right: 20px;
    }
}