body {
    background: #f5f7fb;
    color: #202733;
}

a {
    color: #2f5f8f;
}

a:hover {
    color: #d85b72;
}

.content,
.container {
    background: transparent;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    min-height: 86px;
    padding: 12px 0 34px;
}

.navbar-header {
    flex: 0 0 auto;
}

.navbar-brand {
    margin: 0;
}

.riri-top-contact {
    position: absolute;
    right: 0;
    bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    color: #78c7ff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .16);
}

.riri-top-contact span {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.riri-top-contact span:nth-child(2) {
    color: #d9a95f;
}

.riri-safe-head .youmu-app {
    background: #ffffff !important;
    border-color: #d9e1ec !important;
    box-shadow: 0 10px 26px rgba(33, 47, 70, .08);
}

.riri-safe-head .youmu-app dl {
    border-bottom-color: #e6edf5 !important;
}

.riri-safe-head .youmu-app dt a {
    color: #24506f !important;
}

.riri-safe-head .youmu-app dd a {
    color: #253142 !important;
}

.riri-safe-head .youmu-app dt a:hover,
.riri-safe-head .youmu-app dd a:hover {
    color: #d85b72 !important;
}

#ddab .seach input {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #ccd7e5;
    box-shadow: inset 0 1px 2px rgba(20, 33, 49, .05);
}

#ddab .seach input::placeholder {
    color: #68778a;
}

#ddab .seach button {
    background: linear-gradient(135deg, #2f5f8f, #24384f);
    color: #ffffff;
    border: 0;
}

.riri-top-banner,
.riri-category-banner-wrap {
    width: 100%;
    margin: 14px auto;
}

.riri-top-banner a,
.riri-category-banner {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #e9eef5;
    box-shadow: 0 10px 24px rgba(35, 49, 68, .10);
}

.riri-top-banner img,
.riri-category-banner img {
    display: block;
    width: 100%;
    max-height: 120px;
    object-fit: cover;
}

.riri-nav-icon-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px 22px;
    margin: 16px auto 20px;
    padding: 16px;
    border: 1px solid #dde5ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(36, 54, 79, .08);
}

.riri-nav-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 104px;
    color: #26364a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.riri-nav-icon-item img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(24, 39, 58, .14);
}

.riri-nav-icon-item span {
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appel-main {
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(33, 46, 66, .08);
}

.appel-heading {
    border-bottom-color: #e1e8f2;
    background: linear-gradient(90deg, #edf4fb, #ffffff);
}

.appel-title,
.appel-title a {
    color: #21364f !important;
}

.appel-title:after {
    background-color: #5f91b8 !important;
}

.thumbnail-group>li>.thumbnail {
    background-color: #eef3f8;
    border-radius: 9px;
    box-shadow: 0 8px 18px rgba(30, 42, 60, .10);
}

.thumbnail-group>li>.thumbnail:hover {
    box-shadow: 0 14px 30px rgba(30, 42, 60, .18);
}

.riri-hot-ad-section {
    margin-bottom: 18px;
}

.riri-hot-ad-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    justify-items: stretch;
    align-items: start;
    padding: 18px;
}

.riri-hot-ad-list li {
    width: auto !important;
    padding: 0 !important;
}

.riri-hot-ad-list li:nth-child(n+9) {
    display: none;
}

.riri-hot-ad-card {
    display: block;
    overflow: hidden;
    border: 1px solid #d7e1ed;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(30, 42, 60, .10);
    transition: box-shadow .2s ease, transform .2s ease;
}

.riri-hot-ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(30, 42, 60, .18);
}

.riri-hot-ad-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 136px;
    object-fit: cover;
}

.riri-hot-ad-card span {
    display: none;
    min-height: 42px;
    padding: 9px 10px 10px;
    overflow: hidden;
    color: #1f2d3d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.riri-hot-tags-section {
    margin: -4px 0 18px;
    padding: 0 4px;
}

.riri-hot-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px 10px;
}

.riri-hot-tags a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 26px;
    padding: 0 11px;
    border: 1px solid #d7e3ef;
    border-radius: 7px;
    color: #496a8a !important;
    background: linear-gradient(180deg, #ffffff, #f2f6fb);
    font-size: 13px;
    font-weight: 500;
    line-height: 24px;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(33, 46, 66, .06);
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.riri-hot-tags a:hover {
    color: #d85b72 !important;
    border-color: rgba(216, 91, 114, .42);
    background: linear-gradient(180deg, #fff9fb, #eef6ff);
    box-shadow: 0 12px 24px rgba(33, 46, 66, .14);
    transform: translateY(-2px);
}

.thumbnail-group>li>.video-info>h5,
.thumbnail-group>li>.video-info>h5 a {
    color: #1f2d3d;
}

.thumbnail-group>li>.video-info>p {
    color: #728096;
}

.grid-container {
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    padding: 12px;
}

.grid-item a {
    color: #2f5f8f;
}

.riri-link-title {
    margin: 10px 0 8px;
    color: #24415f;
    font-size: 16px;
    font-weight: 700;
}

.riri-link-section {
    padding: 0 !important;
    margin: 0 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.riri-link-row,
.riri-friend-section .grid-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px 16px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}

.riri-link-item,
.riri-link-row .grid-item {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}

.riri-link-row a,
.riri-friend-section a {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #2f5f8f !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    text-decoration: none !important;
    transition: color .18s ease, text-shadow .18s ease;
}

.riri-site-links a {
    color: #e84b70 !important;
    text-shadow: 0 1px 10px rgba(232, 75, 112, .12);
}

.riri-site-links .riri-link-item:nth-child(2n) a {
    color: #0f95c8 !important;
}

.riri-site-links .riri-link-item:nth-child(3n) a {
    color: #d88310 !important;
}

.riri-partner-links a {
    color: #476b8f !important;
}

.riri-footer-links a {
    color: #8fc1e8 !important;
}

.riri-link-row a:hover,
.riri-friend-section a:hover {
    color: #ff8d38 !important;
    text-shadow: 0 1px 12px rgba(255, 141, 56, .22);
}

.riri-friend-section {
    padding-top: 6px;
}

.riri-friend-section h4 {
    margin: 0 0 8px;
    color: #d8e8f6;
    font-size: 15px;
    font-weight: 700;
}

.footer {
    background: #1e2836 !important;
    color: #edf3f8;
    border-radius: 10px 10px 0 0;
}

.footer font {
    color: #8fc1e8 !important;
}

.riri-play-desc {
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    background: #ffffff;
    color: #2d3a4c;
    box-shadow: 0 10px 24px rgba(33, 46, 66, .08);
}

.riri-play-desc h3 {
    margin: 0 0 10px;
    color: #21364f;
    font-size: 18px;
    font-weight: 700;
}

.riri-play-desc div {
    color: #4e5f73;
    font-size: 15px;
    line-height: 1.8;
}

.riri-float-icons {
    position: fixed;
    z-index: 999;
    top: 22%;
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.riri-float-left {
    left: 18px;
}

.riri-float-right {
    right: 18px;
}

.riri-float-icons a,
.riri-bottom-float-icons a {
    display: block;
}

.riri-float-icons img {
    display: block;
    width: 104px;
    height: 104px;
    object-fit: cover;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(16, 28, 44, .22);
}

.riri-bottom-float-icons {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 999;
    display: flex;
    justify-content: center;
    gap: 190px;
    transform: translateX(-50%);
}

.riri-bottom-float-icons img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(16, 28, 44, .20);
}

.riri-page-wrap {
    padding: 12px 0 20px;
}

.riri-page-total {
    margin-bottom: 8px;
    color: #4d6076;
    font-size: 14px;
}

.riri-pagination {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 5px auto !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 15px;
}

.riri-pagination .fenye {
    display: inline-flex;
    margin: 0 !important;
}

.riri-pagination .page_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #d7e3ef;
    border-radius: 6px;
    color: #23364b !important;
    background: #ffffff;
    font-weight: 700;
    line-height: 34px;
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.riri-pagination .page_link:hover,
.riri-pagination .active .page_link {
    color: #ffffff !important;
    border-color: #4c7fac;
    background: linear-gradient(180deg, #5d93bf, #3f6e99);
    box-shadow: 0 10px 22px rgba(63, 110, 153, .22);
    transform: translateY(-1px);
}

.riri-page-go {
    gap: 6px;
}

.riri-page-go .page_input {
    width: 62px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #d7e3ef;
    border-radius: 6px;
    color: #23364b;
    background: #ffffff;
    text-align: center;
}

.riri-page-go .mac_page_go {
    min-width: 62px;
    color: #ffffff !important;
    border-color: #d98b35;
    background: linear-gradient(180deg, #f2a047, #d67a20);
}

@media screen and (max-width: 768px) {
    .header {
        gap: 10px;
        min-height: 92px;
        padding: 10px 0 38px;
    }

    .riri-top-contact {
        right: 0;
        bottom: 6px;
        gap: 6px 10px;
        font-size: 12px;
    }

    .riri-top-contact span {
        padding: 0;
    }

    .riri-hot-ad-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .riri-hot-tags-section {
        margin: -2px 0 14px;
        padding: 0;
    }

    .riri-hot-tags {
        gap: 7px;
    }

    .riri-hot-tags a {
        min-width: 48px;
        height: 24px;
        padding: 0 9px;
        font-size: 12px;
        line-height: 22px;
    }

    .riri-nav-icon-strip {
        gap: 14px 16px;
        padding: 12px;
    }

    .riri-nav-icon-item {
        width: calc(25% - 12px);
        min-width: 68px;
        font-size: 12px;
    }

    .riri-nav-icon-item img {
        width: 68px;
        height: 68px;
    }

    .riri-float-icons {
        top: 46%;
        gap: 42px;
        transform: translateY(-50%);
    }

    .riri-float-left {
        left: 6px;
    }

    .riri-float-right {
        right: 6px;
    }

    .riri-float-icons img {
        width: 68px;
        height: 68px;
    }

    .riri-bottom-float-icons {
        gap: 132px;
        bottom: 12px;
    }

    .riri-bottom-float-icons img {
        width: 68px;
        height: 68px;
    }

    .riri-pagination {
        gap: 6px;
        font-size: 13px;
    }

    .riri-pagination .page_link {
        min-width: 34px;
        height: 31px;
        padding: 0 10px;
        line-height: 31px;
    }

    .riri-page-go .page_input {
        width: 54px;
        height: 31px;
    }

    .detail {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 0 8px 12px !important;
    }

    .detail-poster {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .detail-poster > a {
        display: block !important;
        width: 100% !important;
        border-radius: 8px;
        overflow: hidden;
        background: #eef3f8;
    }

    .detail-poster > a img {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .detail-info {
        float: none !important;
        width: 100% !important;
        padding-left: 0 !important;
        overflow: visible !important;
    }

    .detail-info .detail-actor {
        margin-bottom: 8px;
    }

    .detail-info .detail-actor > li {
        line-height: 1.75 !important;
    }

    .detail-info p {
        margin-bottom: 8px !important;
        line-height: 1.75 !important;
    }

    .detail-info .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 98px;
        height: 34px;
        padding: 0 14px;
    }
}

/* 2026-09 link range color refresh */
.riri-link-section .riri-link-title,
.riri-friend-section h4 {
  color: #244a66 !important;
}
.riri-site-links a {
  color: #f05a7e !important;
  background: linear-gradient(90deg, #f05a7e, #f2a94c, #2ba6d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
}
.riri-partner-links a {
  color: #1484a8 !important;
  font-weight: 800 !important;
}
.riri-footer-links a {
  color: #ffe08a !important;
  font-weight: 800 !important;
}
.riri-friend-section a:hover,
.riri-link-row a:hover {
  color: #18c7a7 !important;
  -webkit-text-fill-color: currentColor;
}

/* 2026-09-07 riri single tags and readable links */
.riri-link-section {
  margin: 10px 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}
.riri-link-title,
.riri-link-section .riri-link-title {
  margin: 0 0 6px !important;
  color: #173a59 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
.riri-link-row,
.riri-link-section .grid-container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 8px 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}
.riri-link-item,
.riri-link-section .grid-item {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.riri-site-links a,
.riri-partner-links a {
  display: inline-block !important;
  padding: 0 !important;
  background: transparent !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.8 !important;
  text-decoration: none !important;
  text-shadow: none !important;
}
.riri-site-links a { color: #006eb8 !important; }
.riri-site-links .riri-link-item:nth-child(3n+1) a { color: #d92d6b !important; }
.riri-site-links .riri-link-item:nth-child(3n+2) a { color: #0b8f79 !important; }
.riri-site-links .riri-link-item:nth-child(3n) a { color: #b26100 !important; }
.riri-partner-links a { color: #2357b8 !important; }
.riri-partner-links .riri-link-item:nth-child(2n) a { color: #13806d !important; }
.riri-hot-tags-section {
  margin: 12px 0 !important;
}
.riri-hot-tags a {
  font-weight: 600 !important;
}
.riri-footer-links a,
.riri-friend-section .riri-footer-links a {
  color: #ffd24d !important;
  -webkit-text-fill-color: currentColor !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.35) !important;
}
.riri-footer-links .riri-link-item:nth-child(2n) a { color: #7ee8ff !important; }
.riri-footer-links .riri-link-item:nth-child(3n) a { color: #ff9bc0 !important; }
.riri-link-row a:hover,
.riri-friend-section a:hover,
.riri-hot-tags a:hover {
  color: #ff7a1a !important;
  -webkit-text-fill-color: currentColor !important;
}
@media screen and (max-width: 768px) {
  .riri-site-links a,
  .riri-partner-links a,
  .riri-footer-links a { font-size: 14px !important; }
}

/* 2026-09-10 riri footer links and like two rows */
.riri-friend-section h4 {
  color: #163f66 !important;
  text-shadow: none !important;
}

.riri-friend-section .riri-footer-links,
.riri-friend-section .grid-container.riri-footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px 14px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

.riri-friend-section .riri-footer-links .riri-link-item {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.riri-footer-links a,
.riri-footer-links .riri-link-item:nth-child(n) a,
.riri-friend-section .riri-footer-links a,
.riri-friend-section .riri-footer-links .riri-link-item:nth-child(n) a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 3px 8px !important;
  color: #175f9f !important;
  -webkit-text-fill-color: #175f9f !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.riri-footer-links a:hover,
.riri-footer-links .riri-link-item:nth-child(n) a:hover,
.riri-friend-section .riri-footer-links a:hover {
  color: #c85d00 !important;
  -webkit-text-fill-color: #c85d00 !important;
  background: transparent !important;
  text-shadow: none !important;
}

.detail-hot .thumbnail-group {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.detail-hot .thumbnail-group:before,
.detail-hot .thumbnail-group:after {
  display: none !important;
  content: none !important;
}

.detail-hot .thumbnail-group > li {
  float: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.detail-hot .thumbnail-group > li:nth-child(n+9) {
  display: none !important;
}

.detail-hot .thumbnail-group > li .thumbnail {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

.detail-hot .thumbnail-group > li .thumbnail img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

.detail-hot .thumbnail-group > li .video-info h5 {
  margin: 7px 0 3px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.detail-hot .thumbnail-group > li .video-info h5 a {
  color: #173a59 !important;
  -webkit-text-fill-color: currentColor !important;
}

.detail-hot .thumbnail-group > li .video-info p {
  margin: 0 !important;
  color: #5d7188 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

@media screen and (max-width: 768px) {
  .detail-hot .thumbnail-group {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .detail-hot .thumbnail-group > li .video-info h5 {
    font-size: 13px !important;
  }

  .riri-footer-links a,
  .riri-footer-links .riri-link-item:nth-child(n) a,
  .riri-friend-section .riri-footer-links a {
    font-size: 13px !important;
    padding: 3px 6px !important;
  }
}