/* Universal Box Sizing - MUST BE FIRST */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Basic Reset */
html,
body {
    margin: 0;
    /* padding: 0; */
    /* Body will get specific padding-bottom later - Commented out as body gets explicit padding */
}

.plyr iframe {
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    transform: scale(1.1);
    /* Hafif zoom ile kenardaki logoları dışarı iter */
    transform-origin: center center !important;
}

/* YouTube Branding Removal: Title ve Logo Gizleme */
.plyr__video-wrapper iframe[id^="youtube"],
.plyr__video-embed iframe {
    width: 100% !important;
    height: 160% !important;
    /* Yüksekliği daha da artır */
    top: -30% !important;
    /* Başlığı daha yukarı kaydır */
    position: absolute !important;
    transform: scale(1.15) !important;
    /* Logoyu sağdan daha fazla dışarı it */
}

/* Kapsayıcıyı taşmalara karşı koru */
.plyr__video-wrapper,
.plyr__video-embed {
    overflow: hidden !important;
}

/* Dinamik Scale: Oynatma listesine göre özel ölçeklendirme */
/* 36 Tv Canlı için scale 1 olsun (Geniş görünüm) */
.playlist-36-tv-canl .plyr iframe {
    transform: scale(1) !important;
}

.playlist-18kanal .plyr iframe {
    transform: scale(1.8) !important;
}

.playlist-haber .plyr iframe {
    transform: scale(1.1) !important;
}



/* Diğer oynatma listeleri için buraya ekleme yapabilirsiniz:
.playlist-digerkanal .plyr iframe {
    transform: scale(1.5) !important;
}
*/

/* Fullscreen durumunda scale 1 yapılacak */
.plyr--fullscreen-active iframe,
.plyr:fullscreen iframe,
.plyr:-webkit-full-screen iframe {
    transform: scale(1) !important;
}

/* MODIFIED Early Global Rules to prevent conflicts */
.sosyal-site-player {
    position: relative;
    overflow: hidden;
    /* Player itself can clip, angry-grid needs to scroll */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #181a1f;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    /* min-height: 120px; */
    /* Test için kaldırıldı */
    /* min-width: 180px; */
    /* Test için kaldırıldı */
    border: 2px solid #23262b;
    transition: box-shadow .2s, border .2s;
    height: 100%;
    min-height: 0;
    /* ADDED: Allow Plyr/video to shrink below its intrinsic min-height */
}

/* MODIFIED: body and .angry-grid EXCLUDED from height:100% */
iframe,
video {
    width: 100% !important;
    height: 100% !important;
    background-color: #000;
    min-height: 0;
    object-fit: cover !important;
}

/* MODIFIED: body and .angry-grid EXCLUDED from overflow:hidden */
.controls,
/* .controls is fixed, can have overflow:hidden if no internal scroll */
html {
    overflow: hidden;
}

/* --- End of MODIFIED Early Global Rules --- */

/* --- DEFINITIVE CORE LAYOUT RULES --- */
html {
    height: 100vh;
    /* Explicitly viewport height */
    font-family: Poppins, sans-serif;
    /* Global font */
    background-color: #000;
    /* Base background */
    overflow-y: hidden;
    /* Prevent html scroll, body/grid will handle it */
}

body {
    width: 100%;
    height: 100vh;
    /* Changed from min-height to strictly viewport height */
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 10px;
    /* CRITICAL: Space for fixed footer & controls. box-sizing ensures this is included in height:100vh */
    overflow: hidden;
    /* Changed from overflow-y: auto. Let angry-grid scroll. */
    /* background-color: #000; */
    /* Inherited from html */
    transition: padding-top 0.4s ease-in-out, padding-bottom 0.3s ease-in-out;
    /* padding-top için transition eklendi */
    padding-top: 10px;
    /* Header padding kaldırıldı - angry-grid yukarı kadar gidebilsin */
}

/* REMOVE THIS BLOCK if it exists anywhere in your CSS (often early, around lines 30-35): */
/*
body,
html {
    width: 100vw;    // CONFLICTS
    height: 100vh;   // CONFLICTS
}
*/

.angry-grid {
    display: grid;
    gap: 10px;
    flex-grow: 1;
    /* Fill available space in flex parent (body) */
    overflow-y: scroll;
    /* Dikey kaydırma aktif */
    scrollbar-width: none;
    position: relative;
    /* For child positioning */
    cursor: pointer;
    /* Existing style */
    /* background-color: #000; */
    /* Inherited from html/body */
}

.angry-grid::-webkit-scrollbar {
    display: none;
}


/* --- END OF DEFINITIVE CORE LAYOUT RULES --- */

/* Ensure channel list (sidebar) can scroll its content */
.channel-categories-container,
.channel-list {
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.channel-categories-container::-webkit-scrollbar,
/* Webkit */
.channel-list::-webkit-scrollbar {
    display: none;
}

/* Plyr player specific sizing, should be fine */
.plyr,
.plyr__video-embed {
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
}

.channel-tab,
.country-selector

/* body font-family already set */
    {
    font-family: Poppins, sans-serif;
}

.empty-grid-placeholder {
    flex-direction: column;
    background: #23262b;
    border: 2px dashed #393c42;
    color: #666;
    font-size: 16px;
    opacity: 0.7;
    cursor: pointer;
}

.empty-grid-placeholder i {
    font-size: 28px;
    margin-bottom: 8px;
    color: #444;
}

.empty-grid-placeholder span {
    font-size: 13px;
}

.channel-name {
    position: absolute;
    bottom: 5px;
    /* Genel kural: Sol alt */
    left: 5px;
    background-color: rgba(0, 0, 0, 1);
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: clamp(10px, 1.5vw, 14px);
    z-index: 20;
    /* top özelliği burada olmamalı */
}

iframe,
video {
    object-fit: cover !important;
    border: none;
    min-height: 0;
}

/* Twitch widget için özel kanal adı konumu */
.twitch-widget-slot .channel-name {
    top: 5px;
    /* Sadece Twitch için: Sol üst */
    bottom: auto;
    /* bottom özelliğini etkisizleştir */
    /* left: 5px; zaten genel kuraldan miras alınır, tekrar yazmaya gerek yok ama açık olması için kalabilir */
}

/* Hardcoded desktop layouts removed. Grid is now managed by database layout configs. */




.controls {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    z-index: 1000;
    max-height: 40px;
    transition: max-height 0.3s ease-in-out;
    width: auto;
    max-width: 90%;
}

.controls:hover {
    max-height: 80vh;
    padding: 15px;
    overflow-y: auto;
}

.controls label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.controls input[type="checkbox"] {
    margin-right: 8px;
}

@media (max-width: 480px) {
    .controls {
        top: 5px;
        left: 5px;
        padding: 8px;
        max-height: 35px;
    }

    .controls:hover {
        max-height: 400px;
        padding: 12px;
    }

    .controls label {
        font-size: 12px;
        margin-bottom: 6px;
    }
}

/* Removed outdated YouTube scaling hacks that were causing letterboxing */

.plyr--video,
.plyr__video-wrapper {
    height: 100% !important;
    padding-bottom: 0 !important;
}

.plyr__video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.plyr__video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}



.video-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(39, 38, 38, 0.8);
    cursor: pointer;
    z-index: 9999;
    background: #272626;
    border-radius: 10px;
    padding: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    min-width: fit-content;
}

.sosyal-site-player:hover .video-controls {
    opacity: 1;
    visibility: visible;
}

.channel-list,
.channel-tab,
.hover-trigger {
    position: fixed;
    right: 0;
}

.control-button {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.control-button i {
    font-size: 14px;
}

.control-button.refresh {
    background-color: rgba(40, 167, 69, 0.8);
    position: relative;
}

.control-button.refresh:hover {
    background-color: rgba(40, 167, 69, 1);
}

/* Yenileme butonu için özel timer gösterimi */
.control-button.refresh .refresh-with-timer {
    position: relative;
    display: inline-block;
}

.refresh-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    line-height: 1;
    pointer-events: none;
    z-index: 10;
}

/* Dropdown menü stilleri */
.refresh-dropdown-container {
    position: relative !important;
    display: inline-block !important;
}

.refresh-dropdown-menu {
    position: absolute !important;
    bottom: 100% !important;
    right: 0 !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid #444 !important;
    border-radius: 6px !important;
    padding: 8px !important;
    z-index: 10000 !important;
    min-width: 130px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
}

.refresh-dropdown-item {
    padding: 8px 12px !important;
    cursor: pointer !important;
    color: #fff !important;
    font-size: 11px !important;
    border-radius: 4px !important;
    transition: background-color 0.15s ease !important;
    white-space: nowrap !important;
}

.refresh-dropdown-item:hover {
    background-color: rgba(40, 167, 69, 0.3) !important;
}

.channel-list {
    top: 0;
    width: 960px;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.97);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.channel-list.visible {
    transform: translateX(0);
}

.channel-list::-webkit-scrollbar {
    display: none;
}

.country-selector-container {
    padding: 10px 0 20px;
    text-align: center;
}

.country-selector-container label {
    color: #fff;
    margin-right: 10px;
    font-size: 14px;
}

.country-selector {
    padding: 8px 12px;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
    font-size: 14px;
}

.channel-tab {
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 130px;
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    border-radius: 10px 0 0 10px;
    z-index: 1001;
    cursor: pointer;
    transition: background 0.3s, right 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    user-select: none;
    padding: 10px 5px;
}

.channel-list.visible+.channel-tab {
    right: 960px;
}

.channel-tab:hover {
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
}

.channel-tab i.fa-tv {
    font-size: 24px;
    margin-bottom: 8px;
}

.channel-tab .tab-text {
    font-size: 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 8px;
    font-weight: 300;
    letter-spacing: 1px;
}

.channel-tab .tab-arrow {
    font-size: 14px;
    transition: transform 0.3s;
}

.channel-list.visible+.channel-tab .tab-arrow {
    transform: rotate(180deg);
}

.hover-trigger {
    top: 0;
    left: 0;
    height: 20px;
    z-index: 999;
    cursor: pointer;
}

.channel-category {
    margin-bottom: 32px;
}

.category-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px 12px;
    justify-items: center;
    align-items: start;
}

.channel-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background: linear-gradient(223deg, #3a4251, #1b1f28);
    opacity: 0.85;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 70px;
    width: 100%;
    position: relative;
}

.channel-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.channel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.channel-name-text {
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    margin-top: 4px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    height: 100%;
    width: 100%;
    transition: transform 0.2s;
}

.channel-item:hover .channel-logo {
    transform: scale(1.1);
}

.channel-item.active {
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid #19cd26;
}

@media (max-width: 768px) {
    .control-button {
        width: 25px;
        height: 25px;
    }

    .control-button i {
        font-size: 12px;
    }

    .channel-list {
        padding: 18px 0;
    }

    .channel-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 18px 10px;
    }

    .channel-item {
        width: 100px;
        height: 100px;
        border-radius: 10px;
    }

    .channel-logo {
        margin-top: 10px;
        margin-bottom: 6px;
    }

    .channel-name-text {
        font-size: 12px;
        padding: 0 4px 8px;
    }

    .country-selector-container {
        padding: 5px 0 10px;
    }

    .country-selector {
        font-size: 13px;
        padding: 6px 10px;
    }

    .channel-tab {
        top: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 200px;
        height: 40px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        border-radius: 0 0 10px 10px;
        padding: 5px 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        transition: background 0.3s, top 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    }

    .channel-tab i.fa-tv {
        font-size: 18px;
        margin-bottom: 0;
        margin-right: 8px;
    }

    .channel-tab .tab-text {
        writing-mode: initial;
        text-orientation: initial;
        margin-bottom: 0;
        font-size: 14px;
        letter-spacing: normal;
    }

    .channel-tab .tab-arrow {
        font-size: 12px;
        margin-left: 6px;
        transform: rotate(0);
    }

    .channel-list.visible+.channel-tab .tab-arrow {
        transform: rotate(180deg);
    }

    .channel-list.visible+.channel-tab {
        right: auto;
        top: 80vh;
    }

    .channel-list {
        top: 0;
        left: 50%;
        right: auto;
        width: 95%;
        max-width: 600px;
        height: auto;
        max-height: 80vh;
        transform: translateX(-50%) translateY(-100%);
        border-radius: 0 0 15px 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border-left: none;
    }

    .channel-list.visible {
        transform: translateX(-50%) translateY(0);
    }
}

/* Footer Styles */
footer {
    background-color: #111;
    color: #ccc;
    margin-top: 10px;
    font-size: 0.7em;
    border-top: 1px solid #333;
    display: flex;
    flex-wrap: wrap;
    /* Allow columns to wrap on smaller screens */
    justify-content: space-between;
    align-items: center;
    /* Vertically align items in the center */
    opacity: 1;
    /* Varsayılan olarak görünür */
    visibility: visible;
    /* Varsayılan olarak görünür */
    transform: translateY(0);
    /* Varsayılan olarak görünür */
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out,
        transform 0.4s ease-in-out;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 5px 10px;
}

footer.hidden {
    /* Footer gizlendiğinde bu sınıf eklenecek */
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
}

#footer-toggle-icon:hover {
    background-color: rgba(0,
            0,
            0,
            0.9) !important;
    /* Inline stili geçersiz kılmak için !important */
}

.footer-column {
    padding: 5px;
    /* Buradaki padding azaltılabilir veya kaldırılabilir, genel padding footer'a verildi */
    min-width: auto;
    /* Allow flex-grow to determine width more accurately */
    flex-basis: 0;
    /* Base width for flex-grow calculation */
    flex-grow: 1;
    text-align: center;
    /* Default center alignment for columns */
}

.footer-column.footer-links {
    flex-grow: 3;
    /* This column will take three times as much of the available space */
}

.footer-copyright {
    text-align: left;
    font-size: 0.8em;
}

.footer-copyright a {
    text-decoration: none;
    color: #aaa;
    margin-top: 7px;
    display: inline-block;
}

.popular-channel-links {
    line-height: 22px;
}

.popular-channel-links a {
    color: #bbb;
    /* Slightly different color for distinction or same as other links */
    text-decoration: none;
    margin: 0 5px;
    /* Space out links */
    font-size: 0.9em;
    /* Slightly smaller or same as other links */
}

.popular-channel-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links p {
    font-size: 0.8em;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 5px;
    /* Space out links */
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-social {
    text-align: right;
}

.footer-social a {
    color: #aaa;
    text-decoration: none;
    font-size: 1.2em;
    /* Slightly larger icons */
    margin: 0 8px;
    /* Space out social icons */
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
}

/* Responsive adjustments for footer columns */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        /* Stack columns vertically */
        padding: 15px;
    }

    .footer-column {
        text-align: center !important;
        /* Center all columns on small screens */
        width: 100%;
        margin-bottom: 10px;
        /* Add space between stacked columns */
        min-width: unset;
        /* Remove min-width on small screens */
        padding: 5px 0;
    }

    .footer-column:last-child {
        margin-bottom: 0;
    }

    .footer-social a {
        font-size: 1.3em;
        /* Make icons a bit larger on mobile */
        margin: 0 10px;
    }
}

/* Styles for #item-1 when displaying page content */
#item-1.page-display-mode {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background-color: #191b1e;
    font-size: 12px;
    color: #e0e0e0;
    padding: 20px;
    overflow-y: auto;
    font-family: Poppins, sans-serif;
    position: relative;
}

#item-1.page-display-mode .page-content h2,
#item-1.page-display-mode .page-content h3 {
    color: #ffffff;
    margin-top: 15px;
    margin-bottom: 10px;
}

#item-1.page-display-mode .page-content p,
#item-1.page-display-mode .page-content li {
    line-height: 1.6;
    margin-bottom: 10px;
}

#item-1.page-display-mode .page-content a {
    color: #7289da;
    text-decoration: none;
}

#item-1.page-display-mode .page-content a:hover {
    text-decoration: underline;
}

#item-1.page-display-mode .page-content ul,
#item-1.page-display-mode .page-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.close-page-content-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
}

.close-page-content-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Grid Layout Control Buttons */
.grid-controls-container {
    position: absolute;
    bottom: 115px;
    left: 30px;
    z-index: 1006;
    display: flex;
    gap: 8px;
    background-color: rgba(20, 20, 20, 0.85);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.grid-control-btn {
    background-color: rgba(50, 50, 50, 0.7);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    padding: 0;
}

.grid-control-btn:hover {
    background-color: rgba(70, 70, 70, 0.9);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.grid-control-btn.active {
    background-color: rgba(80, 120, 200, 0.8);
    color: #fff;
    border-color: rgba(100, 150, 255, 0.9);
}

.grid-control-btn svg {
    width: 22px;
    height: 22px;
}

/* 2x2 Grid Layout */
.angry-grid.layout-2x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    height: 600px;
}

.angry-grid.layout-2x2 .sosyal-site-player {
    grid-column: auto !important;
    grid-row: auto !important;
    height: 100% !important;
    width: 100% !important;
}

.angry-grid.layout-2x2 #item-1,
.angry-grid.layout-2x2 #item-2,
.angry-grid.layout-2x2 #item-3,
.angry-grid.layout-2x2 #item-4 {
    display: flex !important;
}

.angry-grid.layout-2x2 #item-5,
.angry-grid.layout-2x2 #item-6,
.angry-grid.layout-2x2 #item-7,
.angry-grid.layout-2x2 #item-8,
.angry-grid.layout-2x2 #item-9 {
    display: none !important;
}


/* New 1x3 Layout: 1 left column (spanning 3 rows), 3 right rows */
.angry-grid.layout-1x3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(3, 1fr);
}

.angry-grid.layout-1x3 .sosyal-site-player {
    display: flex;
}

.angry-grid.layout-1x3 #item-1 {
    grid-column: 1 / span 1;
    grid-row: 1 / span 3;
}

.angry-grid.layout-1x3 #item-2 {
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
}

.angry-grid.layout-1x3 #item-3 {
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
}

.angry-grid.layout-1x3 #item-4 {
    grid-column: 2 / span 1;
    grid-row: 3 / span 1;
}

/* Hide items 5 through 9 for the 1x3 layout as it only supports 4 items */
.angry-grid.layout-1x3 .sosyal-site-player:nth-child(n+5) {
    display: none;
}


/* Hardcoded layout overrides removed to prevent conflicts with database dynamic CSS */

/* Styles for Favorite Star */
.channel-list .channel-item {
    /* CHANGED from .channel-entry to .channel-item */
    position: relative;
    /* Add some padding if the star is too close to the edge or text */
    /* padding-right: 25px; */
}

.channel-list .favorite-star {
    position: absolute;
    bottom: 5px;
    /* Adjust as needed */
    right: 5px;
    /* Adjust as needed, was 8px */
    font-size: 14px;
    /* Adjust icon size, was 16px */
    color: #ccc;
    /* Default non-favorite color (grey) */
    cursor: pointer;
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    z-index: 10;
    /* Ensure it's clickable */
}

.channel-list .favorite-star.is-favorite {
    color: #ffc107;
    /* Gold/yellow for favorite */
}

.channel-list .favorite-star:hover {
    transform: scale(1.25);
}

/* Ensure channel logo and name are not overlapped if star is large */
/* .channel-list .channel-logo { /* CHANGED from .channel-logo-in-list */
/* max-width: calc(100% - 20px); /* Example if star takes space */
/* } */
/* ... other existing styles ... */

/* NEW STYLES FOR COLLAPSIBLE LAYOUT PICKER */
.grid-controls-container {
    display: flex;
    position: fixed;
    /* Or absolute, depending on your layout */
    bottom: 115px;
    /* Adjust as needed */
    left: 30px;
    /* Adjust as needed */
    z-index: 1005;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 5px;
    transition: width 0.3s ease-in-out;
    /* Transition for container width */
    overflow: hidden;
    /* To hide non-active buttons smoothly */
}

.grid-controls-container.picker-collapsed .grid-control-btn:not(.active) {
    display: none;
}

.grid-control-btn {
    background-color: transparent;
    border: none;
    color: white;
    padding: 8px;
    margin: 2px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    /* Ensure SVG and any text aligns well */
    align-items: center;
    justify-content: center;
}

.grid-control-btn svg {
    width: 20px;
    /* Ensure consistent icon size */
    height: 20px;
    fill: currentColor;
}

.grid-control-btn.active {
    background-color: #555;
    /* Highlight for active button */
}

.grid-control-btn:hover:not(.active) {
    background-color: #444;
}

/* END NEW STYLES */

/* NEW STYLES FOR ALTINKAYNAK WIDGET */
.altinkaynak-widget-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #333;
    padding: 0;
    border-radius: 8px;
    text-align: center;
    position: relative;
    font-family: 'Poppins', sans-serif;
    min-height: 220px;
    box-sizing: border-box;
    overflow: hidden;
}

.altinkaynak-widget-slot iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    overflow-x: hidden;
    /* Yatay scroll'u gizle */
    overflow-y: auto;
    /* Dikey scroll'a izin ver ama şeffaf yap */
}

/* Iframe içindeki scrollbar'ı şeffaf yap */
.altinkaynak-widget-slot iframe::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.altinkaynak-widget-slot iframe::-webkit-scrollbar-track {
    background: transparent;
}

.altinkaynak-widget-slot iframe::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Firefox için scrollbar gizleme */
.altinkaynak-widget-slot iframe {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* END NEW STYLES FOR ALTINKAYNAK WIDGET */

/* NEW STYLES FOR OPENWEATHERMAP WIDGET */
.openweathermap-widget-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* İçeriği dikeyde yay */
    /* background-color: #2a2a48; */
    /* Arka plan resimle değişeceği için bu satırı kaldırabiliriz veya fallback olarak bırakabiliriz */
    color: white;
    padding: 0;
    /* Padding'i content wrapper'a taşıyalım */
    border-radius: 8px;
    text-align: center;
    position: relative;
    /* Kapatma butonu ve overlay için */
    font-family: 'Poppins', sans-serif;
    min-height: 220px;
    /* Biraz daha yükseklik verelim detaylar için */
    box-sizing: border-box;
    overflow: hidden;
    /* Yuvarlak kenarların dışına taşan arka planı gizle */
}

.weather-widget-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* İçeriği yukarıdan başlat */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    /* Yarı saydam koyu arka plan */
    padding: 15px;
    /* İçerik için padding */
    box-sizing: border-box;
    /* Padding ve border hesaba katılsın */
    overflow-y: auto;
    /* Çok fazla detay olursa scroll eklensin */
}

/* Webkit tabanlı tarayıcılar için kaydırma çubuğunu özelleştirme */
.weather-widget-content::-webkit-scrollbar {
    width: 8px;
}

.weather-widget-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.weather-widget-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.weather-widget-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.weather-main {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.weather-icon {
    width: 60px;
    /* İkonu biraz küçülttük */
    height: 60px;
    margin-right: 10px;
    /* Sıcaklıkla arasına boşluk */
}

.weather-temp {
    font-size: 2.2em;
    /* Ana sıcaklık fontu */
    font-weight: bold;
    line-height: 1;
}

.weather-desc {
    font-size: 1.1em;
    text-transform: capitalize;
    margin-bottom: 5px;
}

.weather-city {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 10px;
    /* Detaylardan önce boşluk biraz azaltıldı */
}

.weather-details {
    width: 100%;
    display: flex;
    /* Flex container yap */
    flex-wrap: wrap;
    /* Öğeler sığmazsa alt satıra kaydır */
    justify-content: space-around;
    /* Öğeleri yatayda dağıt */
    gap: 8px;
    /* Öğeler arasında boşluk azaltıldı */
}

.detail-item {
    background-color: rgba(255, 255, 255, 0.1);
    /* Hafif saydam beyaz kutu */
    border-radius: 5px;
    /* Kenar yuvarlaklığı biraz azaltıldı */
    padding: 8px;
    /* Padding azaltıldı */
    min-width: 90px;
    /* Minimum genişlik azaltıldı */
    flex: 1 1 90px;
    /* Esneklik: büyüyebilir, küçülebilir, temel genişlik azaltıldı */
    display: flex;
    flex-direction: column;
    /* Etiket ve değeri dikeyde sırala */
    align-items: center;
    /* İçeriği ortala */
    text-align: center;
    margin-bottom: 8px;
    /* Diğer satırdaki item ile boşluk azaltıldı */
}

.detail-label {
    font-size: 0.7em;
    /* Etiket için font boyutu azaltıldı */
    color: #ddd;
    /* Etiket için soluk renk */
    margin-bottom: 3px;
    /* Boşluk azaltıldı */
}

.detail-value {
    font-size: 1em;
    /* Değer için font boyutu azaltıldı */
    font-weight: 600;
    /* Değer için daha belirgin font */
    line-height: 1.1;
}

/* Eski .detail-row stillerini kaldırıyoruz veya yorumluyoruz, çünkü artık kullanılmıyorlar */
/*
.detail-row {
    display: flex;
    justify-content: space-between; 
    padding: 3px 0; 
    border-bottom: 1px solid #3a3a5c; 
}
.detail-row:last-child {
    border-bottom: none; 
}

.detail-row span:first-child {
    color: #aaa; 
    margin-right: 10px;
}
.detail-row span:last-child {
    font-weight: 500; 
}
*/

/* END OPENWEATHERMAP WIDGET STYLES */

/* STYLES FOR CITY SELECTION MODAL */
.city-selection-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* Diğer öğelerin üzerinde olması için */
}

.city-selection-modal {
    background-color: #333;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.city-selection-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.city-selection-modal input[type="text"] {
    width: calc(100% - 22px);
    /* padding and border considerations */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: white;
    font-size: 1em;
}

.city-selection-modal button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 0 5px;
    transition: background-color 0.2s ease;
}

.city-selection-modal .modal-confirm-btn {
    background-color: #4CAF50;
    /* Yeşil */
    color: white;
}

.city-selection-modal .modal-confirm-btn:hover {
    background-color: #45a049;
}

.city-selection-modal .modal-cancel-btn {
    background-color: #f44336;
    /* Kırmızı */
    color: white;
}

.city-selection-modal .modal-cancel-btn:hover {
    background-color: #e53935;
}

/* END STYLES FOR CITY SELECTION MODAL */

/* STYLES FOR SYMBOL SELECTION MODAL (Similar to City Selection) */
.symbol-selection-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.symbol-selection-modal {
    background-color: #333;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 450px;
    /* Slightly wider for symbol input */
    text-align: center;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.symbol-selection-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.symbol-selection-modal p {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 15px;
}

.symbol-selection-modal input[type="text"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: white;
    font-size: 1em;
}

.symbol-selection-modal button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 0 5px;
    transition: background-color 0.2s ease;
}

.symbol-selection-modal .modal-confirm-btn {
    background-color: #2196F3;
    /* Blue for TradingView */
    color: white;
}

.symbol-selection-modal .modal-confirm-btn:hover {
    background-color: #1e88e5;
}

.symbol-selection-modal .modal-cancel-btn {
    background-color: #f44336;
    /* Red */
    color: white;
}

.symbol-selection-modal .modal-cancel-btn:hover {
    background-color: #e53935;
}

/* END STYLES FOR SYMBOL SELECTION MODAL */

/* STYLES FOR PRAYER TIMES SECTION */
.prayer-times-container-wrapper {
    width: 100%;
    padding-top: 8px;
    /* Boşluk azaltıldı */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* Ayırıcı çizgi */
}

.prayer-times-section-title {
    font-size: 1em;
    /* Font boyutu azaltıldı */
    font-weight: bold;
    margin-bottom: 8px;
    /* Boşluk azaltıldı */
    text-align: center;
    color: #fff;
    /* Başlık rengi */
}

.prayer-times-items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 6px;
    /* Namaz vakti kutucukları arasında boşluk azaltıldı */
}

.prayer-time-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    /* Kenar yuvarlaklığı azaltıldı */
    padding: 6px 8px;
    /* Padding azaltıldı */
    min-width: 70px;
    /* Minimum genişlik azaltıldı */
    flex: 1 1 70px;
    /* Esneklik azaltıldı */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 6px;
    /* Boşluk azaltıldı */
}

.prayer-name {
    font-size: 0.65em;
    /* Font boyutu azaltıldı */
    color: #eee;
    margin-bottom: 2px;
    /* Boşluk azaltıldı */
    text-transform: uppercase;
}

.prayer-value {
    font-size: 0.9em;
    /* Font boyutu azaltıldı */
    font-weight: 600;
    color: #fff;
}

.prayer-times-section-placeholder,
.prayer-times-section-error {
    font-size: 0.9em;
    color: #ccc;
    text-align: center;
    padding: 10px;
}

.prayer-times-section-error small {
    font-size: 0.8em;
    color: #aaa;
}

/* END STYLES FOR PRAYER TIMES SECTION */

/* Site Geneli Başlık (Header) Stilleri */
.site-header {
    color: #ecf0f1;
    /* Açık renk metin */
    padding: 0 20px;
    /* Yanlardan boşluk */
    position: absolute;
    /* Sayfanın en üstüne sabitle - absolute olarak değiştirildi */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Diğer öğelerin üzerinde kalmasını sağla - daha yüksek z-index */
    display: flex;
    justify-content: space-between;
    /* Sol ve sağ bölümü ayır */
    align-items: center;
    /* Öğeleri dikeyde ortala */
    overflow: hidden;
    /* Animasyon sırasında içeriğin taşmasını engelle */
    transition: height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out, transform 0.4s ease-in-out;
    /* Transform eklendi */
    opacity: 1;
    /* Varsayılan olarak görünür */
    visibility: visible;
    /* Varsayılan olarak görünür */
    transform: translateY(0);
    /* Varsayılan olarak yerinde */
}

.header-left {
    display: flex;
    margin-left: 20px;
    align-items: center;
    background-color: #000;
    /* Siyah arkaplan */
    border-radius: 0 0 10px 10px;

}

.header-left a {
    padding: 10px 10px 0 10px;
    background-image: url('img/tvekran-logo.webp');
    /* Normal durumda bu logo */
    width: 176px;
    background-repeat: no-repeat;
    background-size: contain;
    height: 60px;
    display: block;
    /* Block yapıldı */
    opacity: 1;
    /* Normal durumda görünür */
    transition: background-image 0.5s ease-in-out;
    /* Background değişimi için geçiş */
}

.header-left a:hover {
    background-image: url('img/tvekran-logo-t.webp');
    /* Hover'da bu logo */
}

.site-logo {
    height: 45px;
    /* Logo yüksekliği */
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.site-nav li {
    margin-right: 15px;
}

.site-nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
    background-color: #34495e;
}

.header-right {
    display: flex;
    align-items: center;
    background-color: #000000;
    padding: 10px;
    margin-right: 8px;
    border-radius: 0 0 10px 10px;
    transition: all 0.3s ease;
}

.header-right.collapsed {
    padding: 5px;
    width: 50px;
    overflow: hidden;
}

.user-actions {
    display: flex;
    align-items: center;
    color: #ecf0f1;
    transition: all 0.3s ease;
}

.header-right.collapsed .user-actions {
    width: 40px;
}

.header-right.collapsed .user-actions>*:not(.user-avatar) {
    display: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.user-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-avatar:hover::after {
    opacity: 1;
}

.header-right.collapsed .user-avatar {
    margin-right: 0;
}

.user-greeting {
    margin-right: 15px;
    font-size: 0.9em;
}

.header-button {
    color: white;
    background-color: #3498db;
    /* Buton rengi */
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.7em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.header-button i {
    margin-right: 5px;
}

.header-button.admin-link {
    background-color: #e67e22;
    /* Admin butonu için farklı renk */
}

.header-button.logout-link {
    background-color: #e74c3c;
    /* Çıkış butonu için farklı renk */
}

.header-button:hover {
    opacity: 0.9;
}

/* --- UNIVERSAL RESPONSIVE FLEXBOX SYSTEM (FIXES OVERLAPS) --- */

/* Tablet & Mobile (Up to 1024px) */
@media (max-width: 1024px) {

    /* Hide non-essential desktop elements */
    .site-nav,
    .user-greeting,
    .grid-controls-container {
        display: none !important;
    }

    /* Adjust Header for Mobile */
    .site-header {
        padding: 0 10px 0 0;
        height: 50px;
    }

    .header-left {
        margin-left: 0;
    }

    .header-left a {
        width: 130px;
        height: 50px;
    }

    .header-right {
        padding: 5px;
        margin-right: 5px;
    }

    .header-button {
        padding: 4px 8px;
        font-size: 0.75em;
    }

    body {
        padding: 0;
        overflow: hidden;
    }

    /* Force Flexbox to ignore all Grid coordinates (Fixes overlaps) */
    .angry-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        padding: 60px 10px 80px 10px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        height: 100vh !important;
        width: 100% !important;
        align-content: flex-start !important;
    }

    /* Universal Player Style for Flex Mode */
    .angry-grid>.sosyal-site-player {
        position: relative !important;
        flex: 0 0 calc(50% - 8px) !important;
        /* 2 Column by default on tablet */
        width: calc(50% - 8px) !important;
        min-height: 180px !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        margin: 0 !important;
        grid-column: auto !important;
        /* Kill Grid assignments */
        grid-row: auto !important;
        /* Kill Grid assignments */
        display: flex !important;
    }

    /* Featured Player (Item 1) always full width */
    .angry-grid>#item-1 {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-height: 220px !important;
    }

    /* Avatar and small UI scale */
    .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }

    .header-button span {
        display: none !important;
    }
}

/* Smartphone Specific (Up to 600px) */
@media (max-width: 600px) {
    .angry-grid>.sosyal-site-player {
        flex: 0 0 100% !important;
        /* Single column stack */
        width: 100% !important;
        min-height: 200px !important;
    }

    .angry-grid>#item-1 {
        min-height: 220px !important;
    }
}

/* Very Small Screens */
@media (max-width: 380px) {
    .header-left a {
        width: 110px;
    }

    .angry-grid>.sosyal-site-player {
        min-height: 170px !important;
    }
}

/* --- END UNIVERSAL RESPONSIVE FLEXBOX SYSTEM --- */

/* --- END UNIVERSAL RESPONSIVE GRID SYSTEM --- */

/* Başlığı gizlemek için CSS sınıfı */
.header-hidden {
    /* display: none !important; */
    /* Bu satır kaldırıldı */
    height: 0 !important;
    opacity: 0;
    visibility: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transform: translateY(-100%);
    /* Yukarı kayarak gizlenme efekti */
}

/* Body padding'ini başlık gizlendiğinde kaldırmak için */
body.body-no-header-padding {
    padding-top: 10px !important;
    /* 0 yerine 10px boşluk bırak */
}

/* Telif Uyarısı Stilleri */
.copyright-warning {
    background: linear-gradient(135deg, #2c1810, #1a0f08);
    border: 2px solid #ff6b35;
    position: relative;
}

.copyright-warning-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.copyright-warning-content:hover {
    background-color: rgba(255, 107, 53, 0.1);
    transform: scale(1.02);
}

.copyright-icon {
    font-size: 3em;
    color: #ff6b35;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.copyright-message {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
}

.copyright-message b {
    color: #ff6b35;
    font-size: 1.1em;
}

.copyright-message em {
    color: #ffa366;
    font-style: italic;
    font-size: 0.9em;
    display: block;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .copyright-warning-content {
        padding: 15px;
    }

    .copyright-icon {
        font-size: 2.5em;
    }

    .copyright-message {
        font-size: 0.9rem;
    }
}

/* Loading Spinner for Lazy Loading */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(40, 40, 40, 0.6));
    backdrop-filter: blur(2px);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #4CAF50;
    border-right: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: pulse-text 1.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.6;
    }
}

/* Loading durumunda slot stilleri */
.loading-content {
    position: relative;
    overflow: hidden;
}

.loading-content .loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

/* Move Screen Popup İyileştirmeleri */
.move-screen-popup {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.move-screen-option {
    padding: 10px 15px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.move-screen-option:last-child {
    border-bottom: none;
}

.move-screen-option:hover:not(.disabled) {
    background: rgba(40, 167, 69, 0.2);
    transform: translateX(3px);
}

.move-screen-option.disabled {
    background: rgba(255, 107, 53, 0.2);
    opacity: 0.6;
}

/* Popup açılım yönü okları */
.move-screen-popup.opening-downward::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(30, 30, 30, 0.95);
    z-index: 10001;
}

.move-screen-popup.opening-upward::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(30, 30, 30, 0.95);
    z-index: 10001;
}

/* Mobil cihazlar için popup iyileştirmeleri */
@media (max-width: 768px) {
    .move-screen-popup {
        min-width: 150px;
        font-size: 14px;
    }

    .move-screen-option {
        padding: 12px 15px;
    }
}